@@ -37,7 +37,7 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * @param $actual |
|
40 | + * @param CompiledExpression $actual |
|
41 | 41 | * @param string $message |
42 | 42 | */ |
43 | 43 | protected function assertInstanceOfCompiledExpression($actual, $message = '') |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use PHPSA\Analyzer\Pass\AnalyzerPassInterface; |
7 | 7 | use PHPSA\Compiler\Event\ExpressionAfterCompile; |
8 | 8 | use PHPSA\Context; |
9 | -use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
10 | 9 | use PHPSA\CompiledExpression; |
11 | 10 | |
12 | 11 | class Casts implements AnalyzerPassInterface |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * @param ClassMethod $methodStmt |
24 | 24 | * @param Context $context |
25 | - * @return bool |
|
25 | + * @return boolean|null |
|
26 | 26 | */ |
27 | 27 | public function pass(ClassMethod $methodStmt, Context $context) |
28 | 28 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | |
6 | 6 | namespace PHPSA\Analyzer\Pass\Statement; |
7 | 7 | |
8 | -use PhpParser\Node\Expr; |
|
9 | 8 | use PhpParser\Node\Expr\Assign; |
10 | 9 | use PhpParser\Node\Stmt; |
11 | 10 | use PhpParser\Node\Stmt\Do_; |
@@ -7,7 +7,6 @@ |
||
7 | 7 | |
8 | 8 | use InvalidArgumentException; |
9 | 9 | use phpDocumentor\Reflection\DocBlockFactory; |
10 | -use PHPSA\Check; |
|
11 | 10 | use PHPSA\CompiledExpression; |
12 | 11 | use PHPSA\Compiler\Event\ExpressionBeforeCompile; |
13 | 12 | use PHPSA\Context; |
@@ -5,8 +5,6 @@ |
||
5 | 5 | use PhpParser\Node\Expr; |
6 | 6 | use PHPSA\Analyzer\Pass\AnalyzerPassInterface; |
7 | 7 | use PHPSA\Context; |
8 | -use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
|
9 | -use PHPSA\CompiledExpression; |
|
10 | 8 | |
11 | 9 | class CompareWithArray implements AnalyzerPassInterface |
12 | 10 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Tests\PHPSA\Expression\BinaryOp; |
4 | 4 | |
5 | 5 | use PhpParser\Node; |
6 | -use PHPSA\CompiledExpression; |
|
7 | 6 | use PHPSA\Compiler\Expression; |
8 | 7 | use PHPSA\Compiler\Expression\Operators\UnaryMinus; |
9 | 8 |