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
The ABNF on http://phpdoc.org/docs/latest/references/phpdoc/types.html contains "callback" as a keyword, but not "callable". The list of keywords below contains "callable", not "callback".
http://php.net/manual/en/language.pseudo-types.php says those two are the same, a bit perhaps like "bool" and "boolean"?
I'd be happy to create a pull request for updating the reference documentation, but I have no idea where to find it. :)
The text was updated successfully, but these errors were encountered:
Hello @scato,
IIRC the official keyword is callable as that is also used to create type hints with. A PR is greatly appreciated!
callable
Sorry, something went wrong.
callback is an old documentation wording that predates the callable type hint and \Closure class.
callback
\Closure
No branches or pull requests
The ABNF on http://phpdoc.org/docs/latest/references/phpdoc/types.html contains "callback" as a keyword, but not "callable". The list of keywords below contains "callable", not "callback".
http://php.net/manual/en/language.pseudo-types.php says those two are the same, a bit perhaps like "bool" and "boolean"?
I'd be happy to create a pull request for updating the reference documentation, but I have no idea where to find it. :)
The text was updated successfully, but these errors were encountered: