/PHP-8.1/Zend/tests/type_declarations/union_types/redundant_types/ |
H A D | iterable_and_Traversable.phpt | 2 Using both iterable and Traversable 6 function test(): iterable|Traversable { 11 Fatal error: Type Traversable|iterable contains both iterable and Traversable, which is redundant i…
|
H A D | iterable_and_Traversable_2.phpt | 2 Using both iterable and Traversable, with extra classes 6 function test(): iterable|Traversable|ArrayAccess { 11 Fatal error: Type Traversable|ArrayAccess|iterable contains both iterable and Traversable, which is…
|
/PHP-8.1/Zend/ |
H A D | zend_interfaces.stub.php | 5 interface Traversable {} interface 7 interface IteratorAggregate extends Traversable 10 public function getIterator(): Traversable; 13 interface Iterator extends Traversable
|
/PHP-8.1/Zend/tests/ |
H A D | bug60161.phpt | 2 Bug #60161: Implementing an interface extending Traversable is order dependent 6 interface Foo extends Traversable { 10 public function getIterator(): Traversable {
|
H A D | bug62609.phpt | 2 Bug #62609: Allow implementing Traversable on abstract classes (fail) 6 abstract class AbstractTraversable implements Traversable {} 12 Fatal error: Class NonAbstractTraversable must implement interface Traversable as part of either It…
|
H A D | bug62609_2.phpt | 2 Bug #62609: Allow implementing Traversable on abstract classes (work) 6 abstract class AbstractTraversable implements Traversable {} 9 public function getIterator(): Traversable {
|
/PHP-8.1/tests/classes/ |
H A D | iterators_005.phpt | 2 ZE2 iterators cannot implement Traversable alone 6 class test implements Traversable { 17 Fatal error: Class test must implement interface Traversable as part of either Iterator or Iterator…
|
/PHP-8.1/ext/spl/ |
H A D | php_spl.stub.php | 49 function iterator_apply(Traversable $iterator, callable $callback, ?array $args = null): int {} 51 function iterator_count(Traversable $iterator): int {} 54 function iterator_to_array(Traversable $iterator, bool $preserve_keys = true): array {}
|
H A D | php_spl_arginfo.h | 50 ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0) 56 ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0) 60 ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0)
|
/PHP-8.1/ext/reflection/tests/ |
H A D | ReflectionNamedType.phpt | 6 function testInternalTypes(?Traversable $traversable): ?string { 34 string(11) "Traversable" 35 string(12) "?Traversable"
|
H A D | intersection_types.phpt | 16 function test1(): X&Y&Z&Traversable&Countable { } 42 Type X&Y&Z&Traversable&Countable: 53 Name: Traversable 54 String: Traversable
|
H A D | ReflectionClass_isIterateable_001.phpt | 20 public function getIterator(): Traversable {} 29 $classes = array('Traversable', 'Iterator', 'IteratorAggregate', 'ExtendsIterator', 'ExtendsIterato… 43 Is Traversable iterable? bool(false)
|
/PHP-8.1/Zend/tests/type_declarations/union_types/variance/ |
H A D | valid.phpt | 16 public function method4(Traversable|X $a): iterable|X {} 20 public array|Traversable $prop2; 25 public function method4(iterable|X $a): Traversable|X {}
|
/PHP-8.1/Zend/tests/arg_unpack/ |
H A D | traversable_with_by_ref_parameters.phpt | 27 Warning: Cannot pass by-reference argument 4 of test() by unpacking a Traversable, passing by-value… 29 Warning: Cannot pass by-reference argument 4 of test() by unpacking a Traversable, passing by-value… 31 Warning: Cannot pass by-reference argument 4 of test() by unpacking a Traversable, passing by-value…
|
/PHP-8.1/ext/intl/tests/ |
H A D | resourcebundle_traversable.phpt | 2 Bug #55610: ResourceBundle does not implement Traversable 11 var_dump($r instanceof Traversable);
|
/PHP-8.1/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | valid8.phpt | 6 abstract class MyIterator implements Traversable {} 14 function method(): X&Traversable {}
|
/PHP-8.1/Zend/tests/return_types/ |
H A D | inheritance009.phpt | 8 public static function test() : Traversable { 14 public static function test() : Traversable {
|
H A D | inheritance007.phpt | 8 public static function test() : Traversable {
|
/PHP-8.1/Zend/tests/type_declarations/ |
H A D | typed_properties_078.phpt | 9 public ?Traversable $t; 48 string(72) "Cannot assign array to property class@anonymous::$t of type ?Traversable" 57 …ng(90) "Cannot assign array to reference held by property class@anonymous::$t of type ?Traversable"
|
H A D | typed_properties_113.phpt | 10 function getIterator(): Traversable {
|
/PHP-8.1/tests/lang/ |
H A D | foreachLoopIteratorAggregate.003.phpt | 42 function getIterator(): Traversable { 48 function getIterator(): Traversable { 54 function getIterator(): Traversable {
|
/PHP-8.1/Zend/tests/array_unpack/ |
H A D | unpack_invalid_type_compile_time.phpt | 2 Unpacking non-array/Traversable detected at compile-time
|
/PHP-8.1/Zend/tests/generators/ |
H A D | yield_from_iterator_agregate.phpt | 7 function getIterator(): Traversable {
|
/PHP-8.1/Zend/tests/type_declarations/union_types/ |
H A D | generator_return_containing_extra_types.phpt | 2 Generator return value has to have Traversable-ish, but may also have extra types
|
/PHP-8.1/ext/spl/tests/ |
H A D | gh11178.phpt | 11 function getIterator(): Traversable {
|