1 | <?php |
||
10 | class CompareWithArray implements AnalyzerPassInterface |
||
11 | { |
||
12 | use DefaultMetadataPassTrait; |
||
13 | |||
14 | const DESCRIPTION = 'Checks for `{type array} > 1` and similar and suggests use of `count()`.'; |
||
15 | |||
16 | /** |
||
17 | * @param Expr\BinaryOp $expr |
||
18 | * @param Context $context |
||
19 | * @return bool |
||
20 | */ |
||
21 | 1 | public function pass(Expr\BinaryOp $expr, Context $context) |
|
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | 1 | public function getRegister() |
|
52 | } |
||
53 |