@@ -16,7 +16,7 @@ |
||
16 | 16 | private $cloneNodes = false; |
17 | 17 | |
18 | 18 | /** |
19 | - * @param array $visitors |
|
19 | + * @param \PHPSA\Node\Visitor\FunctionCall[] $visitors |
|
20 | 20 | * @param Context $context |
21 | 21 | */ |
22 | 22 | public function __construct(array $visitors, Context $context) |
@@ -5,7 +5,6 @@ |
||
5 | 5 | |
6 | 6 | namespace PHPSA\Analyzer; |
7 | 7 | |
8 | -use PhpParser\NodeVisitor; |
|
9 | 8 | use PHPSA\Context; |
10 | 9 | |
11 | 10 | class AstTraverser extends \PhpParser\NodeTraverser |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * @param \PhpParser\Node\Stmt\Foreach_ $stmt |
19 | 19 | * @param Context $context |
20 | - * @return CompiledExpression |
|
20 | + * @return null|boolean |
|
21 | 21 | */ |
22 | 22 | public function compile($stmt, Context $context) |
23 | 23 | { |
@@ -241,7 +241,7 @@ |
||
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |
244 | - * @return int|string |
|
244 | + * @return integer |
|
245 | 245 | */ |
246 | 246 | public function getCurrentBranch() |
247 | 247 | { |
@@ -200,7 +200,7 @@ |
||
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
203 | - * @param $name |
|
203 | + * @param string $name |
|
204 | 204 | * @param bool $inherit |
205 | 205 | * @return Node\Stmt\Property |
206 | 206 | */ |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | protected $possibleReturnValues = array(); |
38 | 38 | |
39 | 39 | /** |
40 | - * @param $name |
|
40 | + * @param string $name |
|
41 | 41 | * @param Node\Stmt\ClassMethod $statement |
42 | - * @param $type |
|
42 | + * @param integer $type |
|
43 | 43 | */ |
44 | 44 | public function __construct($name, Node\Stmt\ClassMethod $statement, $type) |
45 | 45 | { |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | /** |
158 | - * @param $newType |
|
158 | + * @param integer $newType |
|
159 | 159 | */ |
160 | 160 | public function addNewType($newType) |
161 | 161 | { |
@@ -10,8 +10,6 @@ |
||
10 | 10 | use PHPSA\Compiler\Expression; |
11 | 11 | use PHPSA\Compiler\Parameter; |
12 | 12 | use PHPSA\Context; |
13 | -use PHPSA\ScopePointer; |
|
14 | -use PHPSA\Variable; |
|
15 | 13 | |
16 | 14 | class ClassMethod extends AbstractDefinition |
17 | 15 | { |