/PHP-8.4/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.4/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: Duplicate type Traversable is redundant in %s on line %d
|
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: Duplicate type Traversable is redundant in %s on line %d
|
/PHP-8.4/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 {
|
H A D | iterable_or_null.phpt | 43 zend_iterable(): Argument #1 ($arg1) must be of type Traversable|array, string given 44 zend_iterable(): Argument #1 ($arg1) must be of type Traversable|array, int given 45 zend_iterable(): Argument #1 ($arg1) must be of type Traversable|array, null given 46 zend_iterable(): Argument #2 ($arg2) must be of type Traversable|array|null, string given
|
H A D | gh7792_5.phpt | 6 enum Foo implements Traversable {} 10 Fatal error: Enum Foo must implement interface Traversable as part of either Iterator or IteratorAg…
|
/PHP-8.4/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.4/ext/zend_test/tests/ |
H A D | internal_dnf_arguments.phpt | 27 string(32) "Iterator|(Traversable&Countable)" 28 string(32) "Iterator|(Traversable&Countable)" 29 zend_test_internal_dnf_arguments(): Argument #1 ($arg) must be of type Iterator|(Traversable&Counta…
|
/PHP-8.4/ext/reflection/tests/ |
H A D | ReflectionNamedType.phpt | 6 function testInternalTypes(?Traversable $traversable): ?string { 34 string(11) "Traversable" 35 string(12) "?Traversable"
|
/PHP-8.4/ext/reflection/tests/types/ |
H A D | dnf_types_with_null.phpt | 20 function test1(): (X&Y)|(Z&Traversable)|null { } 46 Type (X&Y)|(Z&Traversable)|null is ReflectionUnionType: 54 Type Z&Traversable is ReflectionIntersectionType: 58 Name: Traversable 59 String: Traversable
|
H A D | dnf_types.phpt | 20 function test1(): (X&Y)|(Z&Traversable)|Countable { } 46 Type (X&Y)|(Z&Traversable)|Countable is ReflectionUnionType: 54 Type Z&Traversable is ReflectionIntersectionType: 58 Name: Traversable 59 String: 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
|
/PHP-8.4/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.4/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.4/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.4/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | valid8.phpt | 6 abstract class MyIterator implements Traversable {} 13 function method1(): (X&Traversable)|string {}
|
/PHP-8.4/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | valid8.phpt | 6 abstract class MyIterator implements Traversable {} 14 function method(): X&Traversable {}
|
H A D | invalid5.phpt | 2 Replacing iterable type with non-Traversable intersection type 18 …ration of Test2::method(): X&Y must be compatible with Test::method(): Traversable|array in %s on …
|
/PHP-8.4/Zend/tests/type_declarations/ |
H A D | typed_properties_095.phpt | 75 uninitialized(Traversable&Countable) 79 uninitialized(Iterator|(Traversable&Countable)) 93 uninitialized(Traversable&Countable) 97 uninitialized(Iterator|(Traversable&Countable))
|
/PHP-8.4/Zend/tests/type_declarations/union_types/ |
H A D | internal_trait_use_typed_union.phpt | 27 uninitialized(Traversable|Countable) 37 string(11) "Traversable"
|
/PHP-8.4/Zend/tests/return_types/ |
H A D | inheritance009.phpt | 8 public static function test() : Traversable { 14 public static function test() : Traversable {
|
/PHP-8.4/Zend/tests/type_declarations/iterable/ |
H A D | iterable_004.phpt | 9 function testTraversable(Traversable $traversable) {} 24 Fatal error: Declaration of Bar::testScalar(Traversable|array $iterable) must be compatible with Fo…
|
H A D | iterable_005.phpt | 19 function method(): Traversable { 32 …n of TestScalar::method(): int must be compatible with Test::method(): Traversable|array in %s on …
|