Lines Matching refs:fromCallable
2 Testing Closure::fromCallable() functionality: Errors
10 $fn = Closure::fromCallable(['Foo', 'privateInstanceFunc']);
23 $fn = Closure::fromCallable('Foo::privateInstanceFunc');
35 $fn = Closure::fromCallable([new Foo, 'privateInstanceFunc']);
47 $fn = Closure::fromCallable([new SubFoo, 'privateInstanceFunc']);
59 $fn = Closure::fromCallable([new Foo, 'privateStaticFunction']);
71 $fn = Closure::fromCallable(['Foo', 'privateStaticFunction']);
83 $fn = Closure::fromCallable('Foo::privateStaticFunction');
95 $fn = Closure::fromCallable('Foo::nonExistentFunction');
107 $fn = Closure::fromCallable(['NonExistentClass', 'foo']);
119 $fn = Closure::fromCallable('thisDoesNotExist');