@@ -100,7 +100,7 @@ |
||
| 100 | 100 | /** |
| 101 | 101 | * @param array $nodes |
| 102 | 102 | * @param $hookIndex |
| 103 | - * @param $anonymousClassStatements |
|
| 103 | + * @param Node[] $anonymousClassStatements |
|
| 104 | 104 | * |
| 105 | 105 | * @return array |
| 106 | 106 | */ |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Spatie\Php7to5\NodeVisitors; |
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node; |
| 6 | +use PhpParser\NodeVisitorAbstract; |
|
| 6 | 7 | use PhpParser\Node\Stmt\Declare_; |
| 7 | 8 | use PhpParser\Node\Stmt\Namespace_; |
| 8 | 9 | use PhpParser\Node\Stmt\Use_; |
| 9 | -use PhpParser\NodeVisitorAbstract; |
|
| 10 | 10 | use Spatie\Php7to5\Converter; |
| 11 | 11 | use Spatie\Php7to5\Exceptions\InvalidPhpCode; |
| 12 | 12 | |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Spatie\Php7to5\NodeVisitors; |
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node; |
| 6 | -use PhpParser\Node\FunctionLike; |
|
| 7 | 6 | use PhpParser\NodeVisitorAbstract; |
| 7 | +use PhpParser\Node\FunctionLike; |
|
| 8 | 8 | |
| 9 | 9 | class ReturnTypesRemover extends NodeVisitorAbstract |
| 10 | 10 | { |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | namespace Spatie\Php7to5\NodeVisitors; |
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node; |
| 6 | -use PhpParser\Node\Param; |
|
| 7 | 6 | use PhpParser\NodeVisitorAbstract; |
| 7 | +use PhpParser\Node\Param; |
|
| 8 | 8 | |
| 9 | 9 | class ScalarTypeHintsRemover extends NodeVisitorAbstract |
| 10 | 10 | { |
@@ -8,8 +8,8 @@ |
||
| 8 | 8 | use Symfony\Component\Console\Command\Command; |
| 9 | 9 | use Symfony\Component\Console\Input\InputArgument; |
| 10 | 10 | use Symfony\Component\Console\Input\InputInterface; |
| 11 | -use Symfony\Component\Console\Output\OutputInterface; |
|
| 12 | 11 | use Symfony\Component\Console\Input\InputOption; |
| 12 | +use Symfony\Component\Console\Output\OutputInterface; |
|
| 13 | 13 | |
| 14 | 14 | class ConvertCommand extends Command |
| 15 | 15 | { |
@@ -46,6 +46,9 @@ |
||
| 46 | 46 | $this->logger = $output; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $target |
|
| 51 | + */ |
|
| 49 | 52 | public function log($sourceItem, $target) |
| 50 | 53 | { |
| 51 | 54 | if ($this->logger === null) { |