Home
last modified time | relevance | path

Searched refs:__invoke (Results 1 – 25 of 41) sorted by path

12

/PHP-7.4/
H A DNEWS1734 [Closure, '__invoke']). (Nikita)
2056 . Fixed bug #75186 (Inconsistent reflection of Closure:::__invoke()). (Nikita)
/PHP-7.4/Zend/tests/
H A Dbug46409.phpt2 Bug #46409 (__invoke method called outside of object context when using array_map)
8 public function __invoke() {
H A Dbug52060.phpt8 var_dump(method_exists($closure, '__invoke')); // true
H A Dbug61025.phpt2 Bug #61025 (__invoke() visibility not honored)
7 static function __invoke();
11 private function __invoke() {
19 echo $b->__invoke();
23 Warning: The magic method __invoke() must have public visibility and cannot be static in %sbug61025…
25 Warning: The magic method __invoke() must have public visibility and cannot be static in %sbug61025…
27 Fatal error: Uncaught Error: Call to private method Bar::__invoke() from context '' in %sbug61025.p…
H A Dbug64960.phpt9 public function __invoke (Exception $e)
38 #2 [internal function]: ExceptionHandler->__invoke(Object(Exception))
H A Dbug69212.phpt26 $f->__invoke(do_throw());
33 $f->__invoke($t->bar(Test::foo(do_throw())));
H A Dbug69802_2.phpt2 Bug #69802 (Reflection on Closure::__invoke borks type hint class name)
6 $r = new ReflectionMethod($f, '__invoke');
H A Dbug70179.phpt7 function __invoke() {
H A Dbug70215.phpt7 public static function __invoke() {
20 Warning: The magic method __invoke() must have public visibility and cannot be static in %s on line…
H A Dbug78689.phpt2 Bug #78689: Closure::fromCallable() doesn't handle [Closure, '__invoke']
5 $a = [function () { echo "123\n"; }, '__invoke'];
H A Dcall_user_func_003.phpt18 var_dump(call_user_func(array($foo, '__invoke'))->__invoke());
19 var_dump(call_user_func(function() use (&$foo) { return $foo; }, '__invoke'));
H A Dclosure_013.phpt2 Closure 013: __invoke() on temporary result
6 function __invoke() {
17 $test->__invoke();
19 $test->__invoke();
20 $test = foo()->__invoke();
H A Dclosure_014.phpt6 function __invoke() {
11 function &__invoke(&$a) {
16 function __invoke() {
22 var_dump($x->__invoke());
24 $x->__invoke();
31 $x->__invoke();
38 $e =& $x->__invoke($b);
42 $x->__invoke($b);
53 $x->__invoke($d);
59 $x->__invoke();
[all …]
H A Dclosure_016.phpt6 function __invoke() {
21 var_dump(is_callable(array($test,"__invoke"), true, $name));
23 var_dump(is_callable(array($test,"__invoke"), false, $name));
37 Foo::__invoke
39 Foo::__invoke
41 Foo::__invoke
43 Foo::__invoke
45 Closure::__invoke
47 Closure::__invoke
49 Closure::__invoke
[all …]
H A Dclosure_020.phpt12 var_dump($this->a->__invoke());
H A Dclosure_025.phpt8 var_dump($a(2)->__invoke(4));
H A Dclosure_030.phpt9 var_dump($$a->__invoke(2));
H A Dclosure_058.phpt17 $a->__invoke();
18 $c = array($a,"__invoke");
20 call_user_func(array($a,"__invoke"));
21 $z(array($a,"__invoke"));
28 $b->__invoke();
29 $c = array($b,"__invoke");
31 call_user_func(array($b,"__invoke"));
32 $z(array($b,"__invoke"));
H A Dclosure_059.phpt17 $f->__invoke($a);
18 call_user_func(array($f,"__invoke"), $a);
26 $f->__invoke($b);
31 call_user_func(array($f,"__invoke"), $b);
H A Dclosure_invoke_case_insensitive.phpt2 Closure::__invoke() is case insensitive
H A Ddereference_004.phpt2 Testing array dereference on __invoke() result
15 public function __invoke() {
/PHP-7.4/Zend/tests/closures/
H A Dclosure_from_callable.inc158 public function __invoke($param1)
/PHP-7.4/Zend/tests/function_arguments/
H A Dcall_with_trailing_comma_basic.phpt26 public function __invoke(...$args) {
83 __invoke
/PHP-7.4/Zend/tests/variadic/
H A Dclosure_invoke.phpt2 Closure::__invoke() with variadic parameter
7 $closure->__invoke(
/PHP-7.4/Zend/
H A Dzend_closures.c47 ZEND_METHOD(Closure, __invoke) /* {{{ */ in ZEND_METHOD() argument

Completed in 67 milliseconds

12