phpstan: Reflection error with encrypted binary file

Bug report

phpstan version 0.12.26

image

Code snippet that reproduces the problem

/var/www/jianghu_entertain/vendor/bin/phpstan analyse -c /var/www/jianghu_entertain/phpcs-rule/phpstan.neon app/Http/Requests/Backend/Headquarters/Report/GameProjectRequest.php --error-format=table --memory-limit=1G

GameProjectRequest.php.txt

Below is obscued binary file php stan work well in version 0.12.25 but now in 0.12.26 not working well. BaseFormRequest.php.txt

Expected output

should pass

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

So how is PHPStan supposed to find and load this file? There’s no reference about it in the configuration file. You should probably put it into bootstrapFiles. See https://phpstan.org/user-guide/discovering-symbols