Skip to content

Commit bc63dfb

Browse files
committed
Use Traversable return type for getIterator()
1 parent 34a8397 commit bc63dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/php/lang/ast/syntax/php/unittest/IsOperatorTest.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function run() {
130130
#[Test]
131131
public function is_native_iterable_type() {
132132
$r= $this->run('class <T> implements \IteratorAggregate {
133-
public function getIterator() {
133+
public function getIterator(): \Traversable {
134134
yield 1;
135135
}
136136

0 commit comments

Comments
 (0)