Lines Matching refs:Closure
2 Testing Closure::fromCallable() functionality: Basic
9 $fn = Closure::fromCallable(['Foo', 'publicStaticFunction']);
13 $fn = Closure::fromCallable(['fOo', 'publicStaticfUNCTION']);
17 $fn = Closure::fromCallable('Foo::publicStaticFunction');
21 $fn = Closure::fromCallable([new Foo, 'publicInstanceFunc']);
25 $fn = Closure::fromCallable([new Foo, 'publicInstanceFunc']);
29 $fn = Closure::fromCallable('bar');
33 $fn = Closure::fromCallable('BAR');
36 echo 'Closure is already a closure';
37 $fn = Closure::fromCallable($closure);
41 $fn = Closure::fromCallable(new PublicInvocable);
90 $fn = Closure::fromCallable([new MagicCall, 'nonExistentMethod']);
94 $fn = Closure::fromCallable(['MagicCall', 'nonExistentMethod']);
107 Closure is already a closure OK