diff --git a/rules/Php70/Rector/Variable/WrapVariableVariableNameInCurlyBracesRector.php b/rules/Php70/Rector/Variable/WrapVariableVariableNameInCurlyBracesRector.php index 51dceb1e0fa..9662aa39ee1 100644 --- a/rules/Php70/Rector/Variable/WrapVariableVariableNameInCurlyBracesRector.php +++ b/rules/Php70/Rector/Variable/WrapVariableVariableNameInCurlyBracesRector.php @@ -53,7 +53,7 @@ CODE_SAMPLE if (!$node->var instanceof Variable) { return null; } - if (\is_string($node->var->name)) { + if (!$node->var->name instanceof Variable) { return null; } return new Variable(new ArrayDimFetch($node->var->name, $node->dim)); diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 57bcabc28a8..90529322f89 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 = '70605936b150b2b589ef4fb3c1275667ff690b26'; + public const PACKAGE_VERSION = '3a10b135cd7e74fdfb2de25708c8482f5beff31c'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-12-08 10:06:48'; + public const RELEASE_DATE = '2024-12-08 10:12:44'; /** * @var int */