Home
last modified time | relevance | path

Searched refs:closure (Results 51 – 75 of 148) sorted by relevance

123456

/PHP-7.4/Zend/tests/
H A Dclosure_043.phpt5 /* Whether it's scoped or not, a static closure cannot have
58 Warning: Cannot bind an instance to a static closure in %s on line %d
60 Warning: Cannot bind an instance to a static closure in %s on line %d
70 Warning: Cannot bind an instance to a static closure in %s on line %d
72 Warning: Cannot bind an instance to a static closure in %s on line %d
H A Dbug72057.phpt16 #0 %s(%d): {closure}(8, 'A non well form...', '%s', %d, Array)
17 #1 %s(%d): {closure}('7as')
H A Dclosure_033.phpt2 Closure 033: Dynamic closure property and private function
26 {closure}()
H A Dbug74164.phpt15 Fatal error: Uncaught Exception: Parameter 1 to Foo\{closure}() expected to be a reference, value g…
17 #0 [internal function]: Foo\{closure}(%s)
H A Dnested_method_and_function.phpt37 string(13) "Baz\{closure}"
38 string(13) "Baz\{closure}"
H A Dbug49908.phpt32 #0 [internal function]: {closure}('Bar')
34 #2 [internal function]: {closure}('Foo')
H A Ddynamic_call_to_ref_returning_function.phpt15 $closure = function &($x) {
18 var_dump($closure->call(new class {}, 42));
H A Dbug64960.phpt16 // this must be a class, closure does not trigger segfault
36 #0 [internal function]: {closure}(8, 'ob_end_clean():...', '%s', 9, Array)
H A Dclosure_027.phpt6 function test(closure $a) {
31 Exception: Too few arguments to function {closure}(), 0 passed in %s on line %d and exactly 1 expec…
H A Dclosure_extra_args.phpt2 Immediately invoked closure with extra args
/PHP-7.4/Zend/tests/return_types/
H A D013.phpt17 Fatal error: Uncaught TypeError: Return value of foo::{closure}() must be of the type array, null r…
19 #0 %s(%d): foo->{closure}()
H A D025.phpt2 Return type of self is allowed in closure
H A D022.phpt2 Hint on closure with lexical vars
/PHP-7.4/Zend/tests/type_declarations/
H A Dcallable_001.phpt13 $closure = function () {};
19 foo($closure);
H A Dself_on_closure_in_method.phpt2 self return type on closure in a method
/PHP-7.4/ext/standard/tests/array/
H A Darray_walk_closure.phpt2 array_walk() closure tests
125 closure with array
141 closure with use
157 closure with object
205 closure and exception
210 string(9) "{closure}"
/PHP-7.4/ext/spl/tests/
H A Dspl_autoload_013.phpt5 $closure = function($class) {
22 spl_autoload_register($closure);
/PHP-7.4/ext/standard/tests/serialize/
H A Dbug30234.phpt32 {closure}(autoload_interface)
33 {closure}(Autoload_Implements)
/PHP-7.4/Zend/tests/closures/
H A Dclosure_from_callable_basic.phpt36 echo 'Closure is already a closure';
37 $fn = Closure::fromCallable($closure);
59 echo 'Subclass closure over parent class protected method';
64 echo 'Subclass closure over parent class static protected method';
108 Closure is already a closure OK
113 Subclass closure over parent class protected method OK
114 Subclass closure over parent class static protected method OK
H A Dclosure_from_callable_reflection.phpt27 $closure = Closure::fromCallable($callable);
28 $refl = new ReflectionFunction($closure);
/PHP-7.4/sapi/phpdbg/tests/
H A Dexceptions_001.phpt16 prompt> frame #0: {closure}() at %s:16
22 #0 %s(22): {closure}()
H A Dexceptions_002.phpt20 #1 %s(20): {closure}()
26 #0 %s(20): {closure}()
/PHP-7.4/Zend/tests/arrow_functions/
H A D006.phpt35 Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
44 Argument 2 passed to {closure}() must be of the type int or null, string given, called in %s on lin…
/PHP-7.4/ext/standard/tests/general_functions/
H A Dclosures_001.phpt2 register_shutdown_function() & closure
/PHP-7.4/Zend/tests/generators/
H A Dyield_closure.phpt2 Generator shouldn't crash if last yielded value is a closure

Completed in 25 milliseconds

123456