← All changes
|
vendor_prefixed/symfony/dependency-injection/Argument/RewindableGenerator.php
+2
-2
18.4
→
trunk
View file →
| @@ -24,14 +24,14 @@ | ||
| 24 | 24 | { |
| 25 | 25 | $this->generator = $generator; |
| 26 | 26 | $this->count = $count; |
| 27 | 27 | } |
| 28 | - public function getIterator() | |
| 28 | + public function getIterator() : \Traversable | |
| 29 | 29 | { |
| 30 | 30 | $g = $this->generator; |
| 31 | 31 | return $g(); |
| 32 | 32 | } |
| 33 | - public function count() | |
| 33 | + public function count() : int | |
| 34 | 34 | { |
| 35 | 35 | if (\is_callable($count = $this->count)) { |
| 36 | 36 | $this->count = $count(); |
| 37 | 37 | } |