/PHP-8.3/Zend/tests/type_declarations/iterable/ |
H A D | iterable_004.phpt | 2 iterable type#004 - Parameter covariance 15 function testArray(iterable $iterable) {} 17 function testTraversable(iterable $iterable) {} 19 function testScalar(iterable $iterable) {} 24 Fatal error: Declaration of Bar::testScalar(Traversable|array $iterable) must be compatible with Fo…
|
H A D | iterable_002.phpt | 2 iterable type#002 - Default values 6 function foo(iterable $iterable = null) { 10 function bar(iterable $iterable = []) { 14 function baz(iterable $iterable = 1) { 20 Fatal error: Cannot use int as default value for parameter $iterable of type Traversable|array in %…
|
H A D | iterable_001.phpt | 2 iterable type#001 6 function test(iterable $iterable) { 7 var_dump($iterable); 48 test(): Argument #1 ($iterable) must be of type Traversable|array, int given, called in %s on line …
|
H A D | iterable_alias_redundancy_iterable.phpt | 2 iterable type with second iterable should be redundant 6 function bar(): iterable|iterable|null {
|
H A D | iterable_003.phpt | 2 iterable type#003 - Return types 6 function foo(): iterable { 9 function bar(): iterable { 13 function baz(): iterable {
|
H A D | iterable_alias_redundancy_object_variance.phpt | 2 iterable type with object should be allowed in variance checks 7 public object|iterable $x; 12 public object|iterable $y;
|
/PHP-8.3/ext/reflection/tests/ |
H A D | iterable_Reflection.phpt | 2 iterable Type in Reflection 6 $function = function(iterable $arg): iterable {}; 24 public iterable $iterable; 66 string(8) "iterable" 67 string(8) "iterable" 72 string(8) "iterable" 73 string(8) "iterable" 78 string(8) "iterable" 79 string(8) "iterable" 84 string(8) "iterable" [all …]
|
H A D | ReflectionClass_isIterateable_001.phpt | 34 echo "Is $class iterable? "; 43 Is Traversable iterable? bool(false) 44 Is Iterator iterable? bool(false) 45 Is IteratorAggregate iterable? bool(false) 46 Is ExtendsIterator iterable? bool(false) 47 Is ExtendsIteratorAggregate iterable? bool(false) 48 Is IteratorImpl iterable? bool(true) 49 Is IteratorAggregateImpl iterable? bool(true) 50 Is ExtendsIteratorImpl iterable? bool(true) 51 Is ExtendsIteratorAggregateImpl iterable? bool(true) [all …]
|
/PHP-8.3/Zend/tests/ |
H A D | gh15330-005.phpt | 24 $iterable = f($canary); 26 $fiber = new Fiber(function () use ($iterable, $canary) { 27 var_dump($canary, $iterable->current()); 28 $f = $iterable->next(...); 37 $iterable->current(); 39 $fiber = $iterable = $canary = null;
|
H A D | gh15330-006.phpt | 28 $iterable = f($canary); 30 $fiber = new Fiber(function () use ($iterable, $canary) { 31 var_dump($canary, $iterable->current()); 32 $iterable->next(); 40 $iterable->current(); 42 $fiber = $iterable = $canary = null;
|
H A D | gh15330-004.phpt | 24 $iterable = f($canary); 26 $fiber = new Fiber(function () use ($iterable, $canary) { 27 var_dump($canary, $iterable->current()); 28 $iterable->next(); 36 $iterable->current(); 38 $fiber = $iterable = $canary = null;
|
H A D | gh15330-003.phpt | 29 $iterable = f($canary); 31 $fiber = new Fiber(function () use ($iterable, $canary) { 32 var_dump($canary, $iterable->current()); 33 $iterable->next(); 41 $iterable->current(); 43 $fiber = $iterable = $canary = null;
|
H A D | gh15330-002.phpt | 15 $iterable = f(); 17 $fiber = new Fiber(function () use ($iterable) { 18 var_dump($iterable->current()); 19 $iterable->next();
|
H A D | bug80391.phpt | 9 public function method3(iterable $x) {} 10 public function method4(iterable $x) {} 14 public function method1(): iterable {} 15 public function method2(): iterable {}
|
H A D | gh15108-001.phpt | 20 $iterable = f(); 22 $fiber = new Fiber(function () use ($iterable) { 23 var_dump($iterable->current()); 24 $iterable->next();
|
H A D | gh15275-001.phpt | 20 $iterable = f(); 22 $fiber = new Fiber(function () use ($iterable) { 23 var_dump($iterable->current()); 24 $iterable->next();
|
H A D | gh15108-002.phpt | 24 $iterable = f(); 26 $fiber = new Fiber(function () use ($iterable) { 27 var_dump($iterable->current()); 28 $iterable->next();
|
H A D | gh15330-001.phpt | 20 $iterable = f(); 22 $fiber = new Fiber(function () use ($iterable) { 23 var_dump($iterable->current()); 24 $iterable->next();
|
H A D | gh15108-005.phpt | 29 $iterable = h(); 30 var_dump($iterable->current()); 32 $fiber = new Fiber(function () use ($iterable) { 33 $iterable->next();
|
H A D | gh15866.phpt | 26 $iterable = f($canary); 27 $fiber = new Fiber(function () use ($iterable, $canary) { 29 $iterable->next(); 41 $fiber = $iterable = $canary = null;
|
/PHP-8.3/tests/lang/ |
H A D | foreachLoop.011.phpt | 2 Changing from an interable type to a non iterable type during the iteration 5 echo "\nChange from array to non iterable:\n"; 13 echo "\nChange from object to non iterable:\n"; 25 Change from array to non iterable: 30 Change from object to non iterable:
|
/PHP-8.3/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | valid8.phpt | 2 Replacing iterable type with intersection type 9 function method(): iterable {} 10 function method2(): iterable|int {} 11 function method3(): iterable|Z {}
|
/PHP-8.3/Zend/tests/typehints/ |
H A D | bug76198.phpt | 2 "iterable" must not be fully qualified 6 function foo(): \iterable { 13 Fatal error: Type declaration 'iterable' must be unqualified in %s on line %d
|
/PHP-8.3/Zend/tests/type_declarations/ |
H A D | typed_properties_076.phpt | 16 public iterable $iterable; 59 valid($test, 'iterable', 'array', [1, 2, 3]); 62 valid($test, 'iterable', 'Iterator', new ArrayIterator); 63 invalid($test, 'Iterator', 'iterable', [1, 2, 3]); 64 valid($test, 'object', 'iterable', new ArrayIterator); 65 invalid($test, 'iterable', 'object', new stdClass);
|
/PHP-8.3/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | valid8.phpt | 2 Covariant replacement of iterable type with intersection type in DNF type 9 function method1(): iterable|string {} 10 function method2(): iterable|int {}
|