Updated Rector to commit 333f38ba4e1923e92cb2032b64363d1b170e842c

333f38ba4e [automated] Apply Coding Standard (#5600)
This commit is contained in:
Tomas Votruba 2024-02-11 00:29:29 +00:00
parent 74eb099cdd
commit 6f6fad7878
2 changed files with 11 additions and 11 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'f4c674c08210069b766058f035c1a41e833de167';
public const PACKAGE_VERSION = '333f38ba4e1923e92cb2032b64363d1b170e842c';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-02-11 00:26:20';
public const RELEASE_DATE = '2024-02-11 00:27:07';
/**
* @var int
*/

View File

@ -3,7 +3,6 @@
declare (strict_types=1);
namespace Rector\NodeTypeResolver\PHPStan\Scope;
use Throwable;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr;
@ -61,6 +60,7 @@ use Rector\PhpParser\Node\CustomNode\FileWithoutNamespace;
use Rector\PHPStan\NodeVisitor\ExprScopeFromStmtNodeVisitor;
use Rector\PHPStan\NodeVisitor\WrappedNodeRestoringNodeVisitor;
use Rector\Util\Reflection\PrivatesAccessor;
use Throwable;
use RectorPrefix202402\Webmozart\Assert\Assert;
/**
* @inspired by https://github.com/silverstripe/silverstripe-upgrader/blob/532182b23e854d02e0b27e68ebc394f436de0682/src/UpgradeRule/PHP/Visitor/PHPStanScopeVisitor.php
@ -216,6 +216,14 @@ final class PHPStanNodeScopeResolver
$nodeTraverser->traverse($stmts);
return $stmts;
}
public function hasUnreachableStatementNode() : bool
{
return $this->hasUnreachableStatementNode;
}
public function resetHasUnreachableStatementNode() : void
{
$this->hasUnreachableStatementNode = \false;
}
/**
* @param Stmt[] $stmts
* @param callable(Node $node, MutatingScope $scope): void $nodeCallback
@ -230,14 +238,6 @@ final class PHPStanNodeScopeResolver
}
}
}
public function hasUnreachableStatementNode() : bool
{
return $this->hasUnreachableStatementNode;
}
public function resetHasUnreachableStatementNode() : void
{
$this->hasUnreachableStatementNode = \false;
}
private function processCallike(CallLike $callLike, MutatingScope $mutatingScope) : void
{
if ($callLike instanceof StaticCall) {