Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

inconsistent callables #1

Open
codemasher opened this issue Jan 22, 2018 · 0 comments
Open

inconsistent callables #1

codemasher opened this issue Jan 22, 2018 · 0 comments

Comments

@codemasher
Copy link
Member

https://wiki.php.net/rfc/consistent_callables

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant