website/errors/phpstan.reflection.md
This error does not correspond to a specific PHP code pattern. It is emitted when PHPStan is unable to find the reflection of a class, function, or constant referenced in the analysed code.
PHPStan needs to resolve information about all symbols (classes, interfaces, traits, functions, constants) used in the analysed code. When a symbol cannot be found through reflection, this error is reported.
This typically happens when:
This error is not ignorable because PHPStan cannot perform accurate analysis when it cannot resolve the types involved.
Make sure all symbols are autoloadable. Learn more at Discovering Symbols.
Common solutions:
composer install or composer dump-autoload to ensure the autoloader is up to date.scanFiles or scanDirectories configuration options in phpstan.neon.