@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | protected $context; |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @param $statement |
|
| 42 | + * @param Function_ $statement |
|
| 43 | 43 | */ |
| 44 | 44 | public function __construct($statement, Context $context) |
| 45 | 45 | { |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | 137 | * @param \PhpParser\Node\Expr $expr |
| 138 | - * @return Node\AbstractNode |
|
| 138 | + * @return Node\AbstractNode|null |
|
| 139 | 139 | */ |
| 140 | 140 | protected function passExpr(\PhpParser\Node\Expr $expr) |
| 141 | 141 | { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | const DESCRIPTION = 'Checks if any optional parameters are before a required one. For example: `function ($a = 1, $b)`'; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * @param Stmt\Function|Stmt\ClassMethod $func |
|
| 20 | + * @param Stmt $func |
|
| 21 | 21 | * @param Context $context |
| 22 | 22 | * @return bool |
| 23 | 23 | */ |
@@ -320,7 +320,7 @@ |
||
| 320 | 320 | } |
| 321 | 321 | |
| 322 | 322 | /** |
| 323 | - * @return string|integer|null |
|
| 323 | + * @return integer |
|
| 324 | 324 | */ |
| 325 | 325 | public function getCurrentBranch() |
| 326 | 326 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use PHPSA\Compiler\Expression; |
| 9 | 9 | use PHPSA\Compiler\GlobalVariable; |
| 10 | 10 | use PHPSA\Definition\AbstractDefinition; |
| 11 | -use PHPSA\Definition\ParentDefinition; |
|
| 12 | 11 | use Symfony\Component\Console\Output\OutputInterface; |
| 13 | 12 | use Webiny\Component\EventManager\EventManager; |
| 14 | 13 | |