| Conditions | 2 |
| Paths | 2 |
| Total Lines | 25 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function onReady() { |
||
| 27 | $this->redis = \PHPDaemon\Clients\Redis\Pool::getInstance(); |
||
|
|
|||
| 28 | |||
| 29 | $params = []; |
||
| 30 | foreach (range(0, 100) as $i) { |
||
| 31 | $params[] = 'myset' . $i; |
||
| 32 | $params[] = 'value' . $i; |
||
| 33 | } |
||
| 34 | $params[] = function($redis) { |
||
| 35 | $params = [function($redis) { |
||
| 36 | D('Count: ' . count($redis->result[1]) . '; Next: ' . $redis->result[0]); |
||
| 37 | }]; |
||
| 38 | |||
| 39 | $cbEnd = function($redis, $scan) { |
||
| 40 | D('Full scan end!'); |
||
| 41 | }; |
||
| 42 | |||
| 43 | // test 1 |
||
| 44 | // call_user_func_array([$this->redis, 'scan'], $params); |
||
| 45 | |||
| 46 | // test 2 |
||
| 47 | $this->redis->autoscan('scan', $params, $cbEnd, 50); |
||
| 48 | }; |
||
| 49 | call_user_func_array([$this->redis, 'mset'], $params); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
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..