Skip to content

Commit 8376fe1

Browse files
committed
correct
1 parent 51699c4 commit 8376fe1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Zend/tests/return_hint/006.phpt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,15 @@ Return type where none previously existed
33

44
--FILE--
55
<?php
6-
7-
class Comment {
8-
}
6+
class Comment {}
97

108
class CommentsIterator extends ArrayIterator implements Iterator {
119
function current() : Comment {
1210
return parent::current();
1311
}
1412
}
1513

16-
17-
$comments = new CommentsIterator([
18-
new Comment
19-
]);
20-
14+
$comments = new CommentsIterator([new Comment]);
2115
foreach ($comments as $comment) {
2216
var_dump($comment);
2317
}

0 commit comments

Comments
 (0)