We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If dynamic string is checked with function_exists it still is considered as not callable. While checking it with is_callable works.
function_exists
is_callable
Is it a bug or an existing function may somehow not be callable?
Trying to invoke string but it might not be a callable. https://phpstan.org/r/dff90463-0f69-409a-ba59-fb242a09a13e
No errors.
The text was updated successfully, but these errors were encountered:
Yeah, this is not currently supported, you can just use is_callable :)
Sorry, something went wrong.
@luxemate After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -12: Trying to invoke string but it might not be a callable. +12: Trying to invoke non-empty-string but it might not be a callable.
Trying to invoke non-empty-string but it might not be a callable.
Implemented: phpstan/phpstan-src@4a98863
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.
No branches or pull requests
Summary of a problem or a feature request
If dynamic string is checked with
function_exists
it still is considered as not callable. While checking it withis_callable
works.Is it a bug or an existing function may somehow not be callable?
Code snippet that reproduces the problem
Trying to invoke string but it might not be a callable.
https://phpstan.org/r/dff90463-0f69-409a-ba59-fb242a09a13e
Expected output
No errors.
The text was updated successfully, but these errors were encountered: