/PHP-8.0/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.0/Zend/ |
H A D | zend_interfaces.stub.php | 5 interface Traversable {} interface 7 interface IteratorAggregate extends Traversable 9 /** @return Traversable */ 13 interface Iterator extends Traversable
|
/PHP-8.0/Zend/tests/ |
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 | bug60161.phpt | 2 Bug #60161: Implementing an interface extending Traversable is order dependent 6 interface Foo extends Traversable {
|
H A D | bug62609_2.phpt | 2 Bug #62609: Allow implementing Traversable on abstract classes (work) 6 abstract class AbstractTraversable implements Traversable {}
|
H A D | bug69802_2.phpt | 13 string(11) "Traversable"
|
/PHP-8.0/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.0/ext/spl/ |
H A D | php_spl.stub.php | 32 function iterator_apply(Traversable $iterator, callable $callback, ?array $args = null): int {} 34 function iterator_count(Traversable $iterator): int {} 36 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.0/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 | ReflectionClass_isIterateable_001.phpt | 29 $classes = array('Traversable', 'Iterator', 'IteratorAggregate', 'ExtendsIterator', 'ExtendsIterato… 43 Is Traversable iterable? bool(false)
|
/PHP-8.0/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.0/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.0/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.0/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.0/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 | iterable_004.phpt | 9 function testTraversable(Traversable $traversable) {}
|
/PHP-8.0/Zend/tests/array_unpack/ |
H A D | unpack_invalid_type_compile_time.phpt | 2 Unpacking non-array/Traversable detected at compile-time
|
H A D | non_integer_keys.phpt | 18 Exception: Cannot unpack Traversable with non-integer keys
|
H A D | string_keys.phpt | 22 string(42) "Cannot unpack Traversable with string keys"
|
/PHP-8.0/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.0/ext/spl/tests/ |
H A D | RecursiveIteratorIterator_invalid_aggregate.phpt | 20 MyIteratorAggregate::getIterator() must return an object that implements Traversable
|
H A D | iterator_count.phpt | 16 …t TypeError: iterator_count(): Argument #1 ($iterator) must be of type Traversable, string given i…
|