| 1 | <?php |
||
| 11 | class ChronoIterator implements \Iterator |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Shifter |
||
| 15 | */ |
||
| 16 | private $shifter; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $date; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var \DateTime |
||
| 25 | */ |
||
| 26 | private $startDate; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Shifter $shifter |
||
| 30 | * @param string $date |
||
| 31 | */ |
||
| 32 | 8 | public function __construct(Shifter $shifter, $date) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return \DateTime |
||
| 42 | */ |
||
| 43 | 4 | public function current() |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return void |
||
| 50 | */ |
||
| 51 | 8 | public function next() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return int |
||
| 58 | */ |
||
| 59 | 1 | public function key() |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
| 66 | * Returns true on success or false on failure. |
||
| 67 | */ |
||
| 68 | 2 | public function valid() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * @return void |
||
| 75 | */ |
||
| 76 | 8 | public function rewind() |
|
| 81 | } |
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..