Home
last modified time | relevance | path

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

12345

/php-src/ext/xml/tests/
H A Dxml_set_element_handler_errors.phpt22 echo 'Invalid start callable type true:', PHP_EOL;
28 echo 'Invalid end callable type true:', PHP_EOL;
41 echo 'Invalid end callable type int:', PHP_EOL;
48 echo 'Invalid start callable, no object set and string not callable:', PHP_EOL;
54 echo 'Invalid end callable, no object set and string not callable:', PHP_EOL;
80 Invalid start callable type true:
82 Invalid end callable type true:
84 Invalid start callable type int:
86 Invalid end callable type int:
88 Invalid start callable, no object set and string not callable:
[all …]
H A Dset_handler_errors.phpt21 echo 'Invalid callable type true:', PHP_EOL;
28 echo 'Invalid callable type int:', PHP_EOL;
35 echo 'String not callable and no object set:', PHP_EOL;
54 Invalid callable type true:
55 …l_set_processing_instruction_handler(): Argument #2 ($handler) must be of type callable|string|null
56 Invalid callable type int:
57 …l_set_processing_instruction_handler(): Argument #2 ($handler) must be of type callable|string|null
58 String not callable and no object set:
60 Deprecated: xml_set_processing_instruction_handler(): Passing non-callable strings is deprecated si…
64 Deprecated: Function xml_set_object() is deprecated since 8.4, provide a proper method callable to …
[all …]
/php-src/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 Dgh16665_2.phpt2 GH-16665 (\callable should not be usable)
5 class_alias('stdClass', 'callable');
8 Fatal error: Cannot use "callable" as a class alias as it is reserved in %s on line %d
H A Dbug55705.phpt2 Bug #55705 (Omitting a callable typehinted argument causes a segfault)
5 function f(callable $c) {}
/php-src/Zend/tests/ctor_promotion/
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
/php-src/ext/dom/tests/
H A DregisterPhpFunctionNS.phpt31 echo "--- Legit cases: global function callable ---\n";
36 echo "--- Legit cases: string callable ---\n";
41 echo "--- Legit cases: trampoline callable ---\n";
46 echo "--- Legit cases: instance class method callable ---\n";
53 echo "--- Legit cases: global function callable that returns nothing ---\n";
66 --- Legit cases: global function callable ---
71 --- Legit cases: string callable ---
76 --- Legit cases: trampoline callable ---
86 --- Legit cases: instance class method callable ---
100 --- Legit cases: global function callable that returns nothing ---
/php-src/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_class_constants_type_error4.phpt2 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 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) {
39 Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type callable, array given, c…
/php-src/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-src/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-src/ext/pcre/tests/
H A Dpreg_replace_callback_array_fatal_error.phpt2 preg_replace_callback_array() invalid callable
10 // invalid callable
14 "/b/" => 'invalid callable'), 'a'));
/php-src/ext/xsl/tests/
H A DregisterPHPFunctionNS.phpt59 echo "--- Legit cases: global function callable ---\n";
65 echo "--- Legit cases: global string callable ---\n";
71 echo "--- Legit cases: trampoline callable ---\n";
77 echo "--- Legit cases: instance class method callable ---\n";
95 --- Legit cases: global function callable ---
97 --- Legit cases: global string callable ---
99 --- Legit cases: trampoline callable ---
108 --- Legit cases: instance class method callable ---
/php-src/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());
/php-src/Zend/tests/first_class_callable/
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
/php-src/ext/reflection/tests/types/
H A DReflectionType_possible_types.phpt13 function(): callable {},
33 string(8) "callable"
/php-src/ext/zend_test/tests/
H A Dobserver_closure_02.phpt19 $callable = [new Foo(), 'bar'];
20 $closure = \Closure::fromCallable($callable);
/php-src/ext/spl/tests/
H A Dbug73896.phpt6 public static function call($callable, array $args) {
7 return call_user_func_array($callable, [$args]);
/php-src/ext/opcache/tests/
H A Dssa_bug_003.phpt8 function test1($x) : callable {
39 test1(): Return value must be of type callable, string returned

Completed in 26 milliseconds

12345