Home
last modified time | relevance | path

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

1234

/PHP-8.2/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.2/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: Duplicate type Traversable is redundant in %s on line %d
H A Diterable_and_Traversable_2.phpt2 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 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 {
H A Diterable_or_null.phpt43 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 Dgh7792_5.phpt6 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 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.2/ext/reflection/tests/
H A DReflectionNamedType.phpt6 function testInternalTypes(?Traversable $traversable): ?string {
34 string(11) "Traversable"
35 string(12) "?Traversable"
/PHP-8.2/ext/reflection/tests/types/
H A Ddnf_types_with_null.phpt20 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 Ddnf_types.phpt20 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 Dintersection_types.phpt16 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 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.2/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.2/ext/intl/tests/
H A Dresourcebundle_traversable.phpt2 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 Dvalid8.phpt6 abstract class MyIterator implements Traversable {}
13 function method1(): (X&Traversable)|string {}
H A Dvalid9.phpt11 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 Dvalid8.phpt6 abstract class MyIterator implements Traversable {}
14 function method(): X&Traversable {}
H A Dinvalid5.phpt2 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 Dinternal_trait_use_typed_union.phpt27 uninitialized(Traversable|Countable)
37 string(11) "Traversable"
/PHP-8.2/Zend/tests/return_types/
H A Dinheritance009.phpt8 public static function test() : Traversable {
14 public static function test() : Traversable {
/PHP-8.2/Zend/tests/type_declarations/iterable/
H A Diterable_004.phpt9 function testTraversable(Traversable $traversable) {}
24 Fatal error: Declaration of Bar::testScalar(Traversable|array $iterable) must be compatible with Fo…
H A Diterable_005.phpt19 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 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"

Completed in 25 milliseconds

1234