@@ -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 |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | /** |
| 80 | 80 | * Try to find function with $namespace from pre-compiled function(s) |
| 81 | 81 | * |
| 82 | - * @param $name |
|
| 82 | + * @param string $name |
|
| 83 | 83 | * @param string|null $namespace |
| 84 | 84 | * @return bool|FunctionDefinition |
| 85 | 85 | */ |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | /** |
| 98 | 98 | * Try to find function from pre-compiled function(s) |
| 99 | 99 | * |
| 100 | - * @param $name |
|
| 100 | + * @param string $name |
|
| 101 | 101 | * @return bool|FunctionDefinition |
| 102 | 102 | */ |
| 103 | 103 | public function getFunction($name) |
@@ -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 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | |
| 8 | 8 | use PHPSA\CompiledExpression; |
| 9 | 9 | use PHPSA\Context; |
| 10 | -use PHPSA\Definition\ClassMethod; |
|
| 11 | 10 | use PHPSA\Compiler\Expression; |
| 12 | 11 | |
| 13 | 12 | class ForeachSt extends AbstractCompiler |
@@ -187,8 +187,8 @@ |
||
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | /** |
| 190 | - * @param $name |
|
| 191 | - * @return CompiledExpression |
|
| 190 | + * @param string $name |
|
| 191 | + * @return Node\Stmt\Property |
|
| 192 | 192 | */ |
| 193 | 193 | public function getProperty($name) |
| 194 | 194 | { |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | namespace PHPSA\Definition; |
| 7 | 7 | |
| 8 | 8 | use PHPSA\CompiledExpression; |
| 9 | -use PHPSA\Compiler\Parameter; |
|
| 10 | 9 | use PHPSA\Context; |
| 11 | 10 | use PhpParser\Node; |
| 12 | 11 | use PHPSA\Variable; |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @param Context $context |
| 52 | - * @return boolean|null |
|
| 52 | + * @return ReflectionClassMethod |
|
| 53 | 53 | */ |
| 54 | 54 | public function compile(Context $context) |
| 55 | 55 | { |
@@ -5,12 +5,8 @@ |
||
| 5 | 5 | |
| 6 | 6 | namespace PHPSA\Definition; |
| 7 | 7 | |
| 8 | -use PHPSA\CompiledExpression; |
|
| 9 | -use PHPSA\Compiler\Parameter; |
|
| 10 | 8 | use PHPSA\Context; |
| 11 | -use PhpParser\Node; |
|
| 12 | 9 | use PHPSA\Exception\NotImplementedException; |
| 13 | -use PHPSA\Variable; |
|
| 14 | 10 | use ReflectionClass; |
| 15 | 11 | |
| 16 | 12 | class RuntimeClassDefinition extends ClassDefinition |