| 1 | <?php |
||
| 10 | class StupidUnaryOperators implements AnalyzerPassInterface |
||
| 11 | { |
||
| 12 | use DefaultMetadataPassTrait; |
||
| 13 | |||
| 14 | const DESCRIPTION = 'Checks for use of UnaryPlus `+$a` and suggests to use an int or float cast instead.'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param Expr\UnaryPlus $expr |
||
| 18 | * @param Context $context |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | public function pass(Expr\UnaryPlus $expr, Context $context) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function getRegister() |
||
| 44 | } |
||
| 45 |