Home
last modified time | relevance | path

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

/PHP-7.1/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, integer 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, integer given, called in %s on line %d
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
/PHP-7.1/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) { }
10 string(8) "iterable"
H A DReflectionType_possible_types.phpt14 function(): iterable {},
32 string(8) "iterable"
/PHP-7.1/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.1/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.1/Zend/tests/typehints/
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, 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 Ddllist_004.phpt28 // iterable
H A Ddllist_005.phpt28 // iterable
/PHP-7.1/
H A DUPGRADING25 . '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 DNEWS1958 . Fixed bug #72661 (ReflectionType::__toString crashes with iterable).
/PHP-7.1/Zend/
H A Dzend_API.c4234 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 Dzend_API.h558 ZEND_API zend_bool zend_is_iterable(zval *iterable);

Completed in 47 milliseconds