/PHP-8.2/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.2/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.2/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.2/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.2/ext/reflection/tests/ |
H A D | ReflectionNamedType.phpt | 6 function testInternalTypes(?Traversable $traversable): ?string { 34 string(11) "Traversable" 35 string(12) "?Traversable"
|
/PHP-8.2/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.2/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.2/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.2/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.2/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | valid8.phpt | 6 abstract class MyIterator implements Traversable {} 13 function method1(): (X&Traversable)|string {}
|
H A D | valid9.phpt | 11 function method1(): (X&Traversable)|string {} 18 …lity between Test2::method2(): (X&MyIterator)|int and Test::method2(): Traversable|array|int, beca…
|
/PHP-8.2/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.2/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.2/Zend/tests/return_types/ |
H A D | inheritance009.phpt | 8 public static function test() : Traversable { 14 public static function test() : Traversable {
|
/PHP-8.2/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 …
|
/PHP-8.2/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"
|