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
{{ message }}
Repository navigation
Dynamic function call produces arguments.count error #13054
We have phpstan reporting false positive errors for dynamically function calls, when calls are conditioned with some checks before the call, based on the a variable that is used to know which function will be called.
To avoid the error, I changed the "if" condition to match the complete function name that is called
Activity
VincentLanglet commentedon May 21, 2025
https://phpstan.org/r/894d9788-c385-4d2f-8a0d-68336041e32e might help understanding the issue.
Seems like the conditional type (between the key and the value) exists, but is lost with the concatenation.
So currently you can do https://phpstan.org/r/5db97425-1de0-47a1-a388-284878b02ac3
phpstan-bot commentedon Sep 11, 2026
Closed via merging phpstan/phpstan-src#6381
github-actions commentedon Oct 13, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.