Home
last modified time | relevance | path

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

/PHP-7.3/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 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.3/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.3/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.3/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.3/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.3/Zend/tests/generators/
H A Dyield_from_non_iterable.phpt2 Yield from non-iterable
/PHP-7.3/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.3/ext/spl/tests/
H A Ddllist_004.phpt28 // iterable
H A Ddllist_005.phpt28 // iterable
/PHP-7.3/Zend/
H A Dzend_API.c4316 ZEND_API zend_bool zend_is_iterable(zval *iterable) /* {{{ */ in zend_is_iterable() argument
4318 switch (Z_TYPE_P(iterable)) { in zend_is_iterable()
4322 return instanceof_function(Z_OBJCE_P(iterable), zend_ce_traversable); in zend_is_iterable()
H A Dzend_API.h551 ZEND_API zend_bool zend_is_iterable(zval *iterable);
/PHP-7.3/
H A DNEWS1415 . Fixed bug #76198 (Wording: "iterable" is not a scalar type). (Levi Morrison)

Completed in 63 milliseconds