Home
last modified time | relevance | path

Searched refs:Traversable (Results 1 – 25 of 38) sorted by relevance

12

/PHP-8.0/Zend/tests/type_declarations/union_types/redundant_types/
H A Diterable_and_Traversable.phpt2 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 Diterable_and_Traversable_2.phpt2 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 Dzend_interfaces.stub.php5 interface Traversable {} interface
7 interface IteratorAggregate extends Traversable
9 /** @return Traversable */
13 interface Iterator extends Traversable
/PHP-8.0/Zend/tests/
H A Dbug62609.phpt2 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 Dbug60161.phpt2 Bug #60161: Implementing an interface extending Traversable is order dependent
6 interface Foo extends Traversable {
H A Dbug62609_2.phpt2 Bug #62609: Allow implementing Traversable on abstract classes (work)
6 abstract class AbstractTraversable implements Traversable {}
H A Dbug69802_2.phpt13 string(11) "Traversable"
/PHP-8.0/tests/classes/
H A Diterators_005.phpt2 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 Dphp_spl.stub.php32 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 Dphp_spl_arginfo.h50 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 DReflectionNamedType.phpt6 function testInternalTypes(?Traversable $traversable): ?string {
34 string(11) "Traversable"
35 string(12) "?Traversable"
H A DReflectionClass_isIterateable_001.phpt29 $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 Dvalid.phpt16 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 Dresourcebundle_traversable.phpt2 Bug #55610: ResourceBundle does not implement Traversable
11 var_dump($r instanceof Traversable);
/PHP-8.0/Zend/tests/arg_unpack/
H A Dtraversable_with_by_ref_parameters.phpt27 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 Dinheritance009.phpt8 public static function test() : Traversable {
14 public static function test() : Traversable {
H A Dinheritance007.phpt8 public static function test() : Traversable {
/PHP-8.0/Zend/tests/type_declarations/
H A Dtyped_properties_078.phpt9 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 Diterable_004.phpt9 function testTraversable(Traversable $traversable) {}
/PHP-8.0/Zend/tests/array_unpack/
H A Dunpack_invalid_type_compile_time.phpt2 Unpacking non-array/Traversable detected at compile-time
H A Dnon_integer_keys.phpt18 Exception: Cannot unpack Traversable with non-integer keys
H A Dstring_keys.phpt22 string(42) "Cannot unpack Traversable with string keys"
/PHP-8.0/Zend/tests/type_declarations/union_types/
H A Dgenerator_return_containing_extra_types.phpt2 Generator return value has to have Traversable-ish, but may also have extra types
/PHP-8.0/ext/spl/tests/
H A DRecursiveIteratorIterator_invalid_aggregate.phpt20 MyIteratorAggregate::getIterator() must return an object that implements Traversable
H A Diterator_count.phpt16 …t TypeError: iterator_count(): Argument #1 ($iterator) must be of type Traversable, string given i…

Completed in 21 milliseconds

12