diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 44f6f010642..f7eeead9350 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 = '5e0f1ce34354497a5163bbd51dddf91cb5c82207'; + public const PACKAGE_VERSION = '72c537af546dae8970b6db5f79f2a1e617db7f61'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-12-18 16:53:02'; + public const RELEASE_DATE = '2024-12-18 18:22:50'; /** * @var int */ diff --git a/src/PhpAttribute/AnnotationToAttributeMapper/StringAnnotationToAttributeMapper.php b/src/PhpAttribute/AnnotationToAttributeMapper/StringAnnotationToAttributeMapper.php index 0e67ae60172..11201ce0d2f 100644 --- a/src/PhpAttribute/AnnotationToAttributeMapper/StringAnnotationToAttributeMapper.php +++ b/src/PhpAttribute/AnnotationToAttributeMapper/StringAnnotationToAttributeMapper.php @@ -6,7 +6,6 @@ namespace Rector\PhpAttribute\AnnotationToAttributeMapper; use PhpParser\Node\Expr; use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Name; -use PhpParser\Node\Scalar\Int_; use PhpParser\Node\Scalar\String_; use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\PhpAttribute\Contract\AnnotationToAttributeMapperInterface; @@ -36,10 +35,6 @@ final class StringAnnotationToAttributeMapper implements AnnotationToAttributeMa if (\strtolower($value) === 'null') { return new ConstFetch(new Name('null')); } - // number as string to number - if (\is_numeric($value) && \strlen((string) (int) $value) === \strlen($value)) { - return Int_::fromString($value); - } if (\strpos($value, "'") !== \false && \strpos($value, "\n") === \false) { $kind = String_::KIND_DOUBLE_QUOTED; } else {