Skip to content

Commit

Permalink
Fix return type of FileInfoParser::parseFileInfoToNodesAndDecorate (#…
Browse files Browse the repository at this point in the history
…2344)

It returns `PhpParser\Node\Stmt[]` instead of `PhpParser\Node[]`.
  • Loading branch information
ruudk committed May 22, 2022
1 parent 08a35af commit a59e9ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/FileSystemRector/Parser/FileInfoParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Rector\FileSystemRector\Parser;

use PhpParser\Node;
use PhpParser\Node\Stmt;
use Rector\Core\PhpParser\NodeTraverser\FileWithoutNamespaceNodeTraverser;
use Rector\Core\PhpParser\Parser\RectorParser;
use Rector\Core\ValueObject\Application\File;
Expand All @@ -21,7 +21,7 @@ public function __construct(
}

/**
* @return Node[]
* @return Stmt[]
*/
public function parseFileInfoToNodesAndDecorate(SmartFileInfo $smartFileInfo): array
{
Expand Down

0 comments on commit a59e9ce

Please sign in to comment.