Skip to content

Comments

Tactical fixes to get project running.#249

Closed
dmsnell wants to merge 2 commits intoWordPress:masterfrom
dmsnell:fix/crashes-when-running
Closed

Tactical fixes to get project running.#249
dmsnell wants to merge 2 commits intoWordPress:masterfrom
dmsnell:fix/crashes-when-running

Conversation

@dmsnell
Copy link
Member

@dmsnell dmsnell commented Feb 11, 2026

  • It’s breaking on anonymous classes, trying to get a class name from a Class_ instance which has none.

  • It’s warning/choking on optional type annotations like ?array

Running

php -r 'require __DIR__ . "/bootstrap.php"; $p = new class() extends WP_Parser\Command { public function go( $path ) { return $this->_get_phpdoc_data( $path );  } }; var_dump( $p->go( "/Users/dmsnell/code/wordpress-develop/src/" ) );'

 - It’s breaking on anonymous classes, trying to get
   a class name from a `Class_` instance which has none.

 - It’s warning/choking on optional type annotations like `?array`
@dmsnell
Copy link
Member Author

dmsnell commented Feb 19, 2026

Closing in favor of #250 or #251

@dmsnell dmsnell closed this Feb 19, 2026
@dmsnell dmsnell deleted the fix/crashes-when-running branch February 19, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant