/PHP-8.3/Zend/tests/ |
H A D | bug29210.phpt | 22 echo "test_func1 isn't callable from inside\n"; 72 echo "test_func1 isn't callable from outside\n"; 77 echo "test_func2 isn't callable from outside\n"; 82 echo "test_func3 isn't callable from outside\n"; 87 echo "test_func4 isn't callable from outside\n"; 97 test_func1 isn't callable from outside 98 test_func2 isn't callable from outside 99 test_func3 isn't callable from outside 100 test_func4 isn't callable from outside 101 test_func1 isn't callable from child [all …]
|
H A D | ctor_promotion_callable_type.phpt | 2 Type of promoted property may not be callable 7 public function __construct(public callable $callable) {} 12 Fatal error: Property Test::$callable cannot have type callable in %s on line %d
|
H A D | bug55705.phpt | 2 Bug #55705 (Omitting a callable typehinted argument causes a segfault) 5 function f(callable $c) {}
|
H A D | first_class_callable_errors.phpt | 2 Trying to acquire callable to something that's not callable 51 Value of type int is not callable
|
H A D | exception_017.phpt | 9 function foo(callable $x) { 31 TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s:%d
|
H A D | callable_self_parent_static_deprecation.phpt | 30 foreach ($variants as $description => $callable) { 32 call_user_func($callable); 35 foreach ($variants as $description => $callable) { 37 call_user_func_array($callable, []); 42 foreach ($variants as $description => $callable) { 44 array_map($callable, [1]); 50 var_dump(is_callable($callable)); 53 echo "\n==> Test callable type hint\n"; 56 $this->callableTypeHint($callable); 60 public function callableTypeHint(callable $c) {} [all …]
|
/PHP-8.3/Zend/tests/type_declarations/ |
H A D | callable_003.phpt | 2 callable type#003 6 function foo(callable $a, $b, callable $c) { 9 function bar(callable $a = null) {
|
H A D | typed_class_constants_type_error4.phpt | 2 Typed class constants (type not allowed; callable) 6 public const callable CONST1 = 1; 10 Fatal error: Class constant A::CONST1 cannot have type callable in %s on line %d
|
H A D | typed_properties_053.phpt | 2 Typed properties disallow callable 6 public callable $a; 12 Fatal error: Property A::$a cannot have type callable in %s on line %d
|
H A D | typed_properties_054.phpt | 2 Typed properties disallow callable (nullable variant) 6 public ?callable $a; 12 Fatal error: Property A::$a cannot have type ?callable in %s on line %d
|
H A D | callable_002.phpt | 2 callable type#002 - Reflection 7 static function foo(callable $arg) {} 9 function foo(callable $bar) { 11 $closure = function (callable $arg) {};
|
H A D | callable_001.phpt | 2 callable type#001 10 function foo(callable $bar) { 33 Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type callable, array given, c…
|
/PHP-8.3/Zend/tests/return_types/ |
H A D | 011.phpt | 2 Function returned callable, expected callable 5 function foo() : callable {
|
H A D | 012.phpt | 2 Method returned callable, expected callable 6 public function bar() : callable {
|
H A D | 022.phpt | 12 $callable = $test(); 13 var_dump($callable());
|
/PHP-8.3/Zend/tests/type_declarations/intersection_types/invalid_types/ |
H A D | invalid_callable_type.phpt | 2 callable type cannot take part in an intersection type 6 function foo(): callable&Iterator {} 10 Fatal error: Type callable cannot be part of an intersection type in %s on line %d
|
/PHP-8.3/ext/pcre/tests/ |
H A D | preg_replace_callback_array_fatal_error.phpt | 2 preg_replace_callback_array() invalid callable 10 // invalid callable 14 "/b/" => 'invalid callable'), 'a'));
|
/PHP-8.3/ext/reflection/tests/ |
H A D | ReflectionFiber_basic.phpt | 6 $callable = function (): void { 15 $fiber = new Fiber($callable); 21 var_dump($callable === $reflection->getCallable()); 28 var_dump($callable === $reflection->getCallable());
|
/PHP-8.3/ext/reflection/tests/types/ |
H A D | ReflectionType_possible_types.phpt | 13 function(): callable {}, 33 string(8) "callable"
|
/PHP-8.3/ext/zend_test/tests/ |
H A D | observer_closure_02.phpt | 19 $callable = [new Foo(), 'bar']; 20 $closure = \Closure::fromCallable($callable);
|
/PHP-8.3/ext/spl/tests/ |
H A D | bug73896.phpt | 6 public static function call($callable, array $args) { 7 return call_user_func_array($callable, [$args]);
|
/PHP-8.3/ext/opcache/tests/ |
H A D | ssa_bug_003.phpt | 8 function test1($x) : callable { 39 test1(): Return value must be of type callable, string returned
|
/PHP-8.3/Zend/tests/closures/ |
H A D | closure_from_callable_reflection.phpt | 26 foreach ($callables as $callable) { 27 $closure = Closure::fromCallable($callable);
|
H A D | closure_from_callable_basic.phpt | 44 echo "Instance return private method as callable"; 49 echo "Instance return private static method as callable"; 54 echo 'Instance return protected static method as callable'; 109 Instance return private method as callable OK 110 Instance return private static method as callable OK 111 Instance return protected static method as callable OK
|
/PHP-8.3/ext/pcntl/tests/ |
H A D | pcntl_signal.phpt | 35 pcntl_signal(SIGALRM, "not callable"); 50 pcntl_signal(): Argument #2 ($handler) must be of type callable|int, string given
|