| 1 | <?php |
||
| 8 | final class ConfigIterator implements Iterator |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string[] |
||
| 12 | */ |
||
| 13 | private $path = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var RecursiveArrayIterator |
||
| 17 | */ |
||
| 18 | private $stack = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var RecursiveArrayIterator |
||
| 22 | */ |
||
| 23 | private $current; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $separator; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param Config $config |
||
| 32 | */ |
||
| 33 | public function __construct(Config $config) |
||
| 38 | |||
| 39 | public function current() |
||
| 43 | |||
| 44 | public function key() |
||
| 48 | |||
| 49 | public function next() |
||
| 60 | |||
| 61 | public function rewind() |
||
| 72 | |||
| 73 | public function valid() |
||
| 89 | } |
||
| 90 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..