phpdoc-parser icon indicating copy to clipboard operation
phpdoc-parser copied to clipboard

PHP Warning in static method call reflector.

Open dd32 opened this issue 1 year ago • 0 comments

PHP Warning: implode(): Invalid arguments passed in wp-content/plugins/phpdoc-parser/lib/class-static-method-call-reflector.php on line 18

I'm not sure what triggers it, but it's triggered with WordPress 6.4.2.

[16-Jan-2024 03:27:06 UTC] PHP  18. WP_Parser\Static_Method_Call_Reflector->getName() wp-content/plugins/phpdoc-parser/lib/runner.php:372
[16-Jan-2024 03:27:06 UTC] PHP  19. implode($glue = '\\', $pieces = NULL) wp-content/plugins/phpdoc-parser/lib/class-static-method-call-reflector.php:18

NULL is not a valid input to implode() here:

https://github.com/WordPress/phpdoc-parser/blob/master/lib/class-static-method-call-reflector.php#L18

dd32 avatar Jan 16 '24 03:01 dd32