Home
last modified time | relevance | path

Searched refs:__invoke (Results 1 – 25 of 57) sorted by relevance

123

/PHP-8.0/Zend/tests/
H A Dclosure_014.phpt6 function __invoke() {
16 function __invoke() {
22 var_dump($x->__invoke());
24 $x->__invoke();
31 $x->__invoke();
38 $e =& $x->__invoke($b);
42 $x->__invoke($b);
49 $e =& $x->__invoke($d);
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_013.phpt2 Closure 013: __invoke() on temporary result
6 function __invoke() {
17 $test->__invoke();
19 $test->__invoke();
20 $test = foo()->__invoke();
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 Dbug61025.phpt2 Bug #61025 (__invoke() visibility not honored)
7 private function __invoke() {
15 echo $b->__invoke();
19 Warning: The magic method Bar::__invoke() must have public visibility in %sbug61025.php on line %d
21 Fatal error: Uncaught Error: Call to private method Bar::__invoke() from global scope in %s:%d
H A Dclosure_invoke_ref_warning.phpt2 Argument name for Closure::__invoke via call_user_func reference warning
7 call_user_func([$test, '__invoke'], null);
11 Warning: Closure::__invoke(): Argument #1 ($arg) must be passed by reference, value given in %s on …
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_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 Dbug78689.phpt2 Bug #78689: Closure::fromCallable() doesn't handle [Closure, '__invoke']
5 $a = [function () { echo "123\n"; }, '__invoke'];
H A Dbug77627.phpt2 Fix for #77627 method_exists on Closure::__invoke without object returns false
5 var_dump(method_exists(Closure::class, "__invoke"));
H A Dbug70215.phpt7 public static function __invoke() {
20 Fatal error: Method A::__invoke() cannot be static in %s on line %d
H A Ddereference_004.phpt2 Testing array dereference on __invoke() result
15 public function __invoke() {
H A Dbug69802_2.phpt2 Bug #69802 (Reflection on Closure::__invoke borks type hint class name)
6 $r = new ReflectionMethod($f, '__invoke');
H A Dbug46409.phpt2 Bug #46409 (__invoke method called outside of object context when using array_map)
8 public function __invoke() {
/PHP-8.0/ext/reflection/tests/
H A Dbug52057.phpt9 var_dump($reflection->hasMethod('__invoke')); // true
12 var_dump($reflection->hasMethod('__invoke')); // true
15 var_dump($reflection->hasMethod('__invoke')); // true
18 var_dump($h = $reflection->getMethod('__invoke')); // true
22 var_dump($h = $reflection->getMethod('__invoke')); // true
36 string(8) "__invoke"
40 string(17) "Closure::__invoke"
43 string(8) "__invoke"
47 string(17) "Closure::__invoke"
50 string(8) "__invoke"
[all …]
H A Dclosures_002.phpt7 function __invoke($a, $b = 0) { }
10 $rm = new ReflectionMethod(new Test, '__invoke');
15 $rp = new ReflectionParameter(array(new Test, '__invoke'), 0);
18 $rp = new ReflectionParameter(array(new Test, '__invoke'), 1);
23 string(8) "__invoke"
H A Dclosures_004.phpt12 $closure2->__invoke ();
17 $closure2->__invoke ();
21 $method = new ReflectionMethod ($closure, '__invoke');
25 $closure2->__invoke ();
30 $closure2->__invoke ();
H A Dclosures_001.phpt9 $rm = $ro->getMethod('__invoke');
14 if ($rm->getName() == '__invoke') {
22 $rm = new ReflectionMethod($closure, '__invoke');
29 $rp = new ReflectionParameter(array($closure, '__invoke'), 0);
31 $rp = new ReflectionParameter(array($closure, '__invoke'), 1);
33 $rp = new ReflectionParameter(array($closure, '__invoke'), 'a');
35 $rp = new ReflectionParameter(array($closure, '__invoke'), 'b');
56 string(8) "__invoke"
H A Dclosures_003.phpt8 $method = new ReflectionMethod ($closure, '__invoke');
15 $parameter = new ReflectionParameter (array ($closure, '__invoke'), 'b');
22 __invoke
23 __invoke
H A Dbug74949.phpt8 $r = new ReflectionMethod($f, "__invoke");
21 Method [ <internal> public method __invoke ] {
24 Method Closure::__invoke does not have a prototype
H A Dbug75186.phpt2 Bug #75186: Inconsistent reflection of Closure:::__invoke()
8 if ($method->name == '__invoke') {
21 string(8) "__invoke"
H A Dbug69802.phpt2 Bug #69802 (Reflection on Closure::__invoke borks type hint class name)
6 $r = new ReflectionMethod($f, '__invoke');
23 Method [ <internal> public method __invoke ] {
/PHP-8.0/ext/xml/tests/
H A Dbug72085.phpt14 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
18 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
22 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
26 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
30 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
34 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
38 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
42 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
46 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
50 Warning: Invalid callback Exception::__invoke, no array or string given in %s on line %d
/PHP-8.0/Zend/tests/variadic/
H A Dclosure_invoke.phpt2 Closure::__invoke() with variadic parameter
7 $closure->__invoke(
/PHP-8.0/Zend/tests/return_types/
H A D043.phpt9 public function __invoke(): self {}
16 public function __invoke(): Foo|int {}
23 public function __invoke(): mixed {}

Completed in 23 milliseconds

123