You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same with variables passed by reference. This blocks all parsing for a file:
foreach( $examplesas &$example ) {
and this works:
foreach( $examplesas$example ) {
When running the command (./vendor/bin/wp-hooks-generator --input ./ --output docs), I get many errors like this:
Warning: Undefined array key 265 in [path]/wp-content/plugins/GravityView/vendor/nikic/php-parser/lib/PhpParser/Lexer.php on line 195
Warning: Undefined array key "" in [path]/wp-content/plugins/GravityView/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php on line 173
Warning: Undefined array key "" in [path]/wp-content/plugins/GravityView/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php on line 335
Parse Error: Syntax error, unexpected , expecting T_STRING or T_NS_SEPARATOR or '{' on line 10
If I place a single
use
statement at the top of a file, none of the actions or filters get parsed.This wouldn't find the
example
filter:But this would:
This also applies to namespaces inside
_deprecated_function()
calls. This blocks all filters for the file:but removing the namespace fixes it:
Same with variables passed by reference. This blocks all parsing for a file:
and this works:
When running the command (
./vendor/bin/wp-hooks-generator --input ./ --output docs
), I get many errors like this:Here's my composer.json and composer.lock file. Hopefully that helps. Please let me know if I'm able to help figure out what's going on here.
The text was updated successfully, but these errors were encountered: