Home
last modified time | relevance | path

Searched refs:iterable (Results 1 – 25 of 28) sorted by relevance

12

/PHP-7.4/Zend/tests/type_declarations/
H A Diterable_004.phpt2 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 Diterable_002.phpt2 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 Diterable_003.phpt2 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 Diterable_001.phpt2 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 Dtyped_properties_076.phpt16 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 Diterable_005.phpt2 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 Dtyped_properties_016.phpt11 public iterable $iter = [];
H A Dtyped_properties_067.phpt7 public ?iterable $it = null;
H A Dtyped_properties_079.phpt7 static iterable $it = [];
H A Dtyped_properties_001.phpt11 public iterable $it;
H A Dtyped_properties_078.phpt7 public ?iterable $it = [];
H A Dtyped_properties_083.phpt8 public ?iterable $i;
/PHP-7.4/tests/lang/
H A DforeachLoop.011.phpt2 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 DReflectionClass_isIterateable_001.phpt34 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 Dbug72661.phpt2 Bug #72661 (ReflectionType::__toString crashes with iterable)
5 function test(iterable $arg) { }
11 string(8) "iterable"
H A DReflectionType_possible_types.phpt14 function(): iterable {},
32 string(8) "iterable"
H A DReflectionType_001.phpt83 public iterable $iterable;
219 public iterable $iterable;
/PHP-7.4/Zend/tests/typehints/
H A Dbug76198.phpt2 "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 Dor_null.phpt60 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 Diterable_type_optimization.phpt2 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 Dbug79657.phpt6 function throwException(): iterable
11 function loop(): iterable
/PHP-7.4/Zend/tests/generators/
H A Dyield_from_non_iterable.phpt2 Yield from non-iterable
/PHP-7.4/Zend/tests/return_types/
H A Dgenerators002.phpt9 … may only declare a return type of Generator, Iterator, Traversable, or iterable, StdClass is not …
/PHP-7.4/ext/spl/tests/
H A Ddllist_004.phpt28 // iterable
H A Ddllist_005.phpt28 // iterable

Completed in 27 milliseconds

12