Updated Rector to commit f51f41de2b5ff26632e2322dbf2795ead1447e45

f51f41de2b Rectify (#6709)
This commit is contained in:
Tomas Votruba 2025-01-31 01:34:38 +00:00
parent 950fcb8ff2
commit c435e209d4
3 changed files with 6 additions and 5 deletions

View File

@ -7,6 +7,7 @@ use PhpParser\Node;
use PhpParser\Node\Expr\Assign;
use PhpParser\Node\Expr\Closure;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\PropertyFetch;
use PhpParser\Node\Expr\StaticCall;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Stmt;
@ -114,11 +115,11 @@ CODE_SAMPLE
}
if (!$stmtExpr->var instanceof MethodCall && !$stmtExpr->var instanceof StaticCall) {
$nodeVar = $stmtExpr->var;
if ($nodeVar instanceof Node\Expr\PropertyFetch) {
if ($nodeVar instanceof PropertyFetch) {
do {
$previous = $nodeVar;
$nodeVar = $nodeVar->var;
} while ($nodeVar instanceof Node\Expr\PropertyFetch);
} while ($nodeVar instanceof PropertyFetch);
if ($this->getName($nodeVar) === 'this') {
$nodeVar = $previous;
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'c78198396c671352dca6044d49ae2de14173fb34';
public const PACKAGE_VERSION = 'f51f41de2b5ff26632e2322dbf2795ead1447e45';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-01-31 07:27:16';
public const RELEASE_DATE = '2025-01-31 01:32:13';
/**
* @var int
*/

View File

@ -113,7 +113,7 @@ final class NodeTransformer
*/
private function splitBySpace(string $value) : array
{
$value = \str_getcsv($value, ' ', '"', "\\");
$value = \str_getcsv($value, ' ', '"', '\\');
return \array_filter($value);
}
/**