Searched refs:iterable (Results 1 – 17 of 17) sorted by relevance
/PHP-7.1/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, integer 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, integer given, called in %s on line %d
|
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
|
/PHP-7.1/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) { } 10 string(8) "iterable"
|
H A D | ReflectionType_possible_types.phpt | 14 function(): iterable {}, 32 string(8) "iterable"
|
/PHP-7.1/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.1/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.1/Zend/tests/typehints/ |
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, integer given, called in %s o… 286 TypeError: Return value of returnIterable() must be iterable or null, integer returned in %s:144 310 TypeError: Return value of returnMissingIterable() must be iterable or null, none returned in %s:200
|
/PHP-7.1/ext/spl/tests/ |
H A D | dllist_004.phpt | 28 // iterable
|
H A D | dllist_005.phpt | 28 // iterable
|
/PHP-7.1/ |
H A D | UPGRADING | 25 . 'iterable' can no longer be used as the name of a class, interface, or 27 (RFC: https://wiki.php.net/rfc/iterable) 162 . Added iterable pseudo-type accepting any array or object implementing 164 (RFC: https://wiki.php.net/rfc/iterable) 285 iterable pseudo-type.
|
H A D | NEWS | 1958 . Fixed bug #72661 (ReflectionType::__toString crashes with iterable).
|
/PHP-7.1/Zend/ |
H A D | zend_API.c | 4234 ZEND_API zend_bool zend_is_iterable(zval *iterable) /* {{{ */ in zend_is_iterable() argument 4236 switch (Z_TYPE_P(iterable)) { in zend_is_iterable() 4240 return instanceof_function(Z_OBJCE_P(iterable), zend_ce_traversable); in zend_is_iterable()
|
H A D | zend_API.h | 558 ZEND_API zend_bool zend_is_iterable(zval *iterable);
|
Completed in 47 milliseconds