Home
last modified time | relevance | path

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

123

/PHP-8.1/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.1/Zend/
H A Dzend_interfaces.stub.php5 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 Dbug60161.phpt2 Bug #60161: Implementing an interface extending Traversable is order dependent
6 interface Foo extends Traversable {
10 public function getIterator(): Traversable {
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 Dbug62609_2.phpt2 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 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.1/ext/spl/
H A Dphp_spl.stub.php49 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 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.1/ext/reflection/tests/
H A DReflectionNamedType.phpt6 function testInternalTypes(?Traversable $traversable): ?string {
34 string(11) "Traversable"
35 string(12) "?Traversable"
H A Dintersection_types.phpt16 function test1(): X&Y&Z&Traversable&Countable { }
42 Type X&Y&Z&Traversable&Countable:
53 Name: Traversable
54 String: Traversable
H A DReflectionClass_isIterateable_001.phpt20 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 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.1/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.1/ext/intl/tests/
H A Dresourcebundle_traversable.phpt2 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 Dvalid8.phpt6 abstract class MyIterator implements Traversable {}
14 function method(): X&Traversable {}
/PHP-8.1/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.1/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 Dtyped_properties_113.phpt10 function getIterator(): Traversable {
/PHP-8.1/tests/lang/
H A DforeachLoopIteratorAggregate.003.phpt42 function getIterator(): Traversable {
48 function getIterator(): Traversable {
54 function getIterator(): Traversable {
/PHP-8.1/Zend/tests/array_unpack/
H A Dunpack_invalid_type_compile_time.phpt2 Unpacking non-array/Traversable detected at compile-time
/PHP-8.1/Zend/tests/generators/
H A Dyield_from_iterator_agregate.phpt7 function getIterator(): Traversable {
/PHP-8.1/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.1/ext/spl/tests/
H A Dgh11178.phpt11 function getIterator(): Traversable {

Completed in 30 milliseconds

123