diff --git a/rules/CodingStyle/Rector/ClassMethod/NewlineBeforeNewAssignSetRector.php b/rules/CodingStyle/Rector/ClassMethod/NewlineBeforeNewAssignSetRector.php index e6ddad8b693..b723515c555 100644 --- a/rules/CodingStyle/Rector/ClassMethod/NewlineBeforeNewAssignSetRector.php +++ b/rules/CodingStyle/Rector/ClassMethod/NewlineBeforeNewAssignSetRector.php @@ -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; } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 48c82467b1c..cb844133f51 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */ diff --git a/src/PhpParser/NodeTransformer.php b/src/PhpParser/NodeTransformer.php index 250552c0f48..f114a1b5836 100644 --- a/src/PhpParser/NodeTransformer.php +++ b/src/PhpParser/NodeTransformer.php @@ -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); } /**