| 1 | <?php |
||
| 21 | class AssignmentInCondition implements Pass\AnalyzerPassInterface |
||
| 22 | { |
||
| 23 | use DefaultMetadataPassTrait; |
||
| 24 | |||
| 25 | const DESCRIPTION = 'Checks for assignments in conditions. (= instead of ==)'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param $stmt |
||
| 29 | * @param Context $context |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function pass($stmt, Context $context) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getRegister() |
||
| 66 | } |
||
| 67 |