Home
last modified time | relevance | path

Searched refs:callable (Results 1 – 25 of 76) sorted by relevance

1234

/PHP-8.1/Zend/tests/
H A Dbug29210.phpt22 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 Dctor_promotion_callable_type.phpt2 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 Dbug55705.phpt2 Bug #55705 (Omitting a callable typehinted argument causes a segfault)
5 function f(callable $c) {}
H A Dfirst_class_callable_errors.phpt2 Trying to acquire callable to something that's not callable
51 Value of type int is not callable
H A Dexception_017.phpt9 function foo(callable $x) {
31 TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s:%d
H A Dfirst_class_callable_014.phpt2 First class callable with nullsafe method call (unrelated)
H A Dfirst_class_callable_012.phpt2 First class callable with nullsafe method call
/PHP-8.1/Zend/tests/type_declarations/
H A Dcallable_003.phpt2 callable type#003
6 function foo(callable $a, $b, callable $c) {
9 function bar(callable $a = null) {
H A Dtyped_properties_053.phpt2 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 Dtyped_properties_054.phpt2 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 Dcallable_002.phpt2 callable type#002 - Reflection
7 static function foo(callable $arg) {}
9 function foo(callable $bar) {
11 $closure = function (callable $arg) {};
H A Dcallable_001.phpt2 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.1/Zend/tests/return_types/
H A D011.phpt2 Function returned callable, expected callable
5 function foo() : callable {
H A D012.phpt2 Method returned callable, expected callable
6 public function bar() : callable {
H A D022.phpt12 $callable = $test();
13 var_dump($callable());
/PHP-8.1/Zend/tests/type_declarations/intersection_types/invalid_types/
H A Dinvalid_callable_type.phpt2 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.1/ext/reflection/tests/
H A DReflectionFiber_basic.phpt6 $callable = function (): void {
15 $fiber = new Fiber($callable);
21 var_dump($callable === $reflection->getCallable());
28 var_dump($callable === $reflection->getCallable());
H A DReflectionType_possible_types.phpt13 function(): callable {},
31 string(8) "callable"
/PHP-8.1/ext/zend_test/tests/
H A Dobserver_closure_02.phpt18 $callable = [new Foo(), 'bar'];
19 $closure = \Closure::fromCallable($callable);
/PHP-8.1/ext/spl/tests/
H A Dbug73896.phpt6 public static function call($callable, array $args) {
7 return call_user_func_array($callable, [$args]);
/PHP-8.1/ext/opcache/tests/
H A Dssa_bug_003.phpt8 function test1($x) : callable {
39 test1(): Return value must be of type callable, string returned
/PHP-8.1/Zend/tests/closures/
H A Dclosure_from_callable_reflection.phpt26 foreach ($callables as $callable) {
27 $closure = Closure::fromCallable($callable);
H A Dclosure_from_callable_basic.phpt44 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.1/ext/pcntl/tests/
H A Dpcntl_signal.phpt35 pcntl_signal(SIGALRM, "not callable");
50 pcntl_signal(): Argument #2 ($handler) must be of type callable|int, string given
/PHP-8.1/ext/opcache/tests/opt/
H A Dgh8140b.phpt2 GH-8140 (Wrong first class callable by name optimization)

Completed in 42 milliseconds

1234