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 }}
This repository has been archived by the owner on May 15, 2021. It is now read-only.
function foo(callable $callable){
// ...
}
foo('trim'); // -> Argument 1 passed to foo() must be callable, string given
foo([$obj, 'method']); // -> Argument 1 passed to foo() must be callable, array given
Both cases work fine on PHP 7.2/Windows, but break on linux.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://wiki.php.net/rfc/consistent_callables
Both cases work fine on PHP 7.2/Windows, but break on linux.
The text was updated successfully, but these errors were encountered: