-
-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPStan\Reflection\ReflectionProvider\MemoizingReflectionProvider::hasClass(): Argument #1 ($className) must be of type string, int given #6540
Comments
Thank you for your report and demo link! Could you send a failing test case in a pull-request, so we have it covered in Rector? |
Any idea where I should add it? Since I got a fatal error, I don't know which rule is relevant. |
You can run rector locally with |
I failed to reproduce this issue in the rector-src repo. Can someone help me reproducing this issue? Thanks! Stacktrace:
|
Bug Report
PHP Fatal error: Uncaught TypeError: PHPStan\Reflection\ReflectionProvider\MemoizingReflectionProvider::hasClass(): Argument #1 ($className) must be of type string, int given, called in vendor/rector/rector/packages/NodeCollector/NodeAnalyzer/ArrayCallableMethodMatcher.php on line 112 and defined in phar:///home/{snap}/vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ReflectionProvider/MemoizingReflectionProvider.php:25
Minimal PHP Code Causing Issue
https://getrector.org/demo/1ebdd6d7-d305-6bfa-aa66-e9270fcce247
Expected Behaviour
The text was updated successfully, but these errors were encountered: