Searched refs:iterable (Results 1 – 25 of 28) sorted by relevance
12
/PHP-7.4/Zend/tests/type_declarations/ |
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 Warning: Declaration of Bar::testScalar(iterable $iterable) should be compatible with Foo::testScal…
|
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: Default value for parameters with iterable type can only be an array or NULL in %s on …
|
H A D | iterable_003.phpt | 2 iterable type#003 - Return types 6 function foo(): iterable { 9 function bar(): iterable { 13 function baz(): iterable { 32 Return value of baz() must be iterable, int returned
|
H A D | iterable_001.phpt | 2 iterable type#001 6 function test(iterable $iterable) { 7 var_dump($iterable); 47 Argument 1 passed to test() must be iterable, int given, called in %s on line %d
|
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);
|
H A D | iterable_005.phpt | 2 iterable type#005 - Return type covariance 7 function method(): iterable { 32 …tion of TestScalar::method(): int must be compatible with Test::method(): iterable in %s on line %d
|
H A D | typed_properties_016.phpt | 11 public iterable $iter = [];
|
H A D | typed_properties_067.phpt | 7 public ?iterable $it = null;
|
H A D | typed_properties_079.phpt | 7 static iterable $it = [];
|
H A D | typed_properties_001.phpt | 11 public iterable $it;
|
H A D | typed_properties_078.phpt | 7 public ?iterable $it = [];
|
H A D | typed_properties_083.phpt | 8 public ?iterable $i;
|
/PHP-7.4/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-7.4/ext/reflection/tests/ |
H A D | ReflectionClass_isIterateable_001.phpt | 34 echo "Is $class iterable? "; 53 Is Traversable iterable? bool(false) 54 Is Iterator iterable? bool(false) 55 Is IteratorAggregate iterable? bool(false) 56 Is ExtendsIterator iterable? bool(false) 57 Is ExtendsIteratorAggregate iterable? bool(false) 58 Is IteratorImpl iterable? bool(true) 59 Is IterarorAggregateImpl iterable? bool(true) 60 Is ExtendsIteratorImpl iterable? bool(true) 61 Is ExtendsIteratorAggregateImpl iterable? bool(true) [all …]
|
H A D | bug72661.phpt | 2 Bug #72661 (ReflectionType::__toString crashes with iterable) 5 function test(iterable $arg) { } 11 string(8) "iterable"
|
H A D | ReflectionType_possible_types.phpt | 14 function(): iterable {}, 32 string(8) "iterable"
|
H A D | ReflectionType_001.phpt | 83 public iterable $iterable; 219 public iterable $iterable;
|
/PHP-7.4/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
|
H A D | or_null.phpt | 60 function iterableF(?iterable $param) {} 146 function returnIterable(): ?iterable { 202 function returnMissingIterable(): ?iterable { 250 TypeError: Argument 1 passed to iterableF() must be iterable or null, int given, called in %s on li… 286 TypeError: Return value of returnIterable() must be iterable or null, int returned in %s:144 310 TypeError: Return value of returnMissingIterable() must be iterable or null, none returned in %s:200
|
/PHP-7.4/ext/opcache/tests/ |
H A D | iterable_type_optimization.phpt | 2 Don't optimize object -> iterable 6 function test(object $arg): iterable { 13 Fatal error: Uncaught TypeError: Return value of test() must be iterable, object returned in %s:%d
|
/PHP-7.4/Zend/tests/ |
H A D | bug79657.phpt | 6 function throwException(): iterable 11 function loop(): iterable
|
/PHP-7.4/Zend/tests/generators/ |
H A D | yield_from_non_iterable.phpt | 2 Yield from non-iterable
|
/PHP-7.4/Zend/tests/return_types/ |
H A D | generators002.phpt | 9 … may only declare a return type of Generator, Iterator, Traversable, or iterable, StdClass is not …
|
/PHP-7.4/ext/spl/tests/ |
H A D | dllist_004.phpt | 28 // iterable
|
H A D | dllist_005.phpt | 28 // iterable
|
Completed in 27 milliseconds
12