/php-src/ext/xml/tests/ |
H A D | xml_set_element_handler_errors.phpt | 22 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 D | set_handler_errors.phpt | 21 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 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 | gh16665_2.phpt | 2 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 D | bug55705.phpt | 2 Bug #55705 (Omitting a callable typehinted argument causes a segfault) 5 function f(callable $c) {}
|
/php-src/Zend/tests/ctor_promotion/ |
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
|
/php-src/ext/dom/tests/ |
H A D | registerPhpFunctionNS.phpt | 31 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 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_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_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_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) { 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 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-src/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-src/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-src/ext/xsl/tests/ |
H A D | registerPHPFunctionNS.phpt | 59 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 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-src/Zend/tests/first_class_callable/ |
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
|
/php-src/ext/reflection/tests/types/ |
H A D | ReflectionType_possible_types.phpt | 13 function(): callable {}, 33 string(8) "callable"
|
/php-src/ext/zend_test/tests/ |
H A D | observer_closure_02.phpt | 19 $callable = [new Foo(), 'bar']; 20 $closure = \Closure::fromCallable($callable);
|
/php-src/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-src/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
|