1 | <?php |
||
10 | class YieldPolyfillIterator implements Iterator { |
||
11 | /** @var RunnableSelect */ |
||
12 | private $select; |
||
13 | /** @var Closure|null */ |
||
14 | private $callback; |
||
15 | /** @var bool */ |
||
16 | private $preserveTypes; |
||
17 | /** @var null */ |
||
18 | private $stmt = null; |
||
19 | /** @var Closure */ |
||
20 | private $statementFactory; |
||
21 | /** @var mixed */ |
||
22 | private $currentItem; |
||
23 | /** @var int */ |
||
24 | private $idx = -1; |
||
25 | |||
26 | /** |
||
27 | * @param RunnableSelect $select |
||
28 | * @param Closure|null $callback |
||
29 | * @param bool $preserveTypes |
||
30 | * @param callable $statementFactory |
||
31 | */ |
||
32 | public function __construct(RunnableSelect $select, Closure $callback = null, $preserveTypes, $statementFactory) { |
||
38 | |||
39 | /** |
||
40 | */ |
||
41 | public function __destruct() { |
||
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | public function current() { |
||
68 | |||
69 | /** |
||
70 | */ |
||
71 | public function next() { |
||
75 | |||
76 | /** |
||
77 | * @return mixed |
||
78 | */ |
||
79 | public function key() { |
||
82 | |||
83 | /** |
||
84 | * @return boolean |
||
85 | */ |
||
86 | public function valid() { |
||
93 | |||
94 | /** |
||
95 | */ |
||
96 | public function rewind() { |
||
104 | |||
105 | /** |
||
106 | * @return QueryStatement |
||
107 | */ |
||
108 | private function getStmt() { |
||
114 | |||
115 | /** |
||
116 | */ |
||
117 | private function closeCursor() { |
||
123 | } |
||
124 |
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..