Home
last modified time | relevance | path

Searched refs:fromCallable (Results 1 – 10 of 10) sorted by relevance

/PHP-7.1/Zend/tests/closures/
H A Dclosure_from_callable.inc58 return Closure::fromCallable([$this, 'privateInstanceFunc']);
73 return Closure::fromCallable([$this, 'publicInstanceFunc']);
78 return Closure::fromCallable([$this, 'publicInstanceFunc']);
83 return Closure::fromCallable('self::publicInstanceFunc');
99 return Closure::fromCallable([$this, 'privateInstanceFunc']);
114 return Closure::fromCallable('parent::publicInstanceFunc');
119 return Closure::fromCallable('self::publicInstanceFunc');
125 return Closure::fromCallable('self::protectedInstanceFunc');
130 return Closure::fromCallable('self::privateInstanceFunc');
176 return Closure::fromCallable([$foo, 'privateStaticFunction']);
[all …]
H A Dclosure_from_callable_lsb.phpt2 Testing Closure::fromCallable() functionality: Late static binding
15 Closure::fromCallable(['A', 'test'])();
16 Closure::fromCallable(['B', 'test'])();
H A Dclosure_from_callable_basic.phpt2 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');
37 $fn = Closure::fromCallable($closure);
41 $fn = Closure::fromCallable(new PublicInvokable);
[all …]
H A Dclosure_from_callable_rebinding.phpt2 Testing Closure::fromCallable() functionality: Rebinding
15 $fn = Closure::fromCallable([new A, 'method']);
H A Dclosure_from_callable_non_static_statically.phpt2 Testing Closure::fromCallable() functionality: Getting non-static method statically
12 $fn = Closure::fromCallable(['A', 'method']);
H A Dclosure_from_callable_error.phpt2 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']);
[all …]
H A Dclosure_from_callable_reflection.phpt2 Testing Closure::fromCallable() functionality: Reflection
27 $closure = Closure::fromCallable($callable);
/PHP-7.1/Zend/
H A Dzend_closures.c299 ZEND_METHOD(Closure, fromCallable) in ZEND_METHOD() argument
600 ZEND_ME(Closure, fromCallable, arginfo_closure_fromcallable, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
/PHP-7.1/
H A DUPGRADING183 . Closure::fromCallable (RFC: https://wiki.php.net/rfc/closurefromcallable)
H A DNEWS1446 . Implemented RFC: Closure::fromCallable (Danack)

Completed in 31 milliseconds