1 | <?php |
||
11 | class AutoScan |
||
12 | { |
||
13 | use \PHPDaemon\Traits\ClassWatchdog; |
||
14 | use \PHPDaemon\Traits\StaticObjectWatchdog; |
||
15 | |||
16 | protected $conn; |
||
17 | |||
18 | protected $cmd; |
||
19 | |||
20 | protected $cursor = 0; |
||
21 | |||
22 | protected $args; |
||
23 | |||
24 | protected $limit = false; |
||
25 | |||
26 | protected $num = 0; |
||
27 | |||
28 | protected $isFreeze = false; |
||
29 | |||
30 | protected $cb; |
||
31 | |||
32 | protected $cbEnd; |
||
33 | |||
34 | /** |
||
35 | * Constructor |
||
36 | * @param Pool $pool Redis pool or connection |
||
37 | * @param string $cmd Command |
||
38 | * @param array $args Arguments |
||
39 | * @param cllable $cbEnd Callback |
||
|
|||
40 | * @param integer $limit Limit |
||
41 | */ |
||
42 | public function __construct($pool, $cmd, $args = [], $cbEnd = null, $limit = false) |
||
66 | |||
67 | protected function doIteration() |
||
91 | |||
92 | public function freeze() |
||
96 | |||
97 | public function run() |
||
102 | |||
103 | public function reset() |
||
108 | } |
||
109 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.