diff --git a/packages/PhpAttribute/NodeFactory/PhpNestedAttributeGroupFactory.php b/packages/PhpAttribute/NodeFactory/PhpNestedAttributeGroupFactory.php index 6a4f6c002d5..83ea0363b2f 100644 --- a/packages/PhpAttribute/NodeFactory/PhpNestedAttributeGroupFactory.php +++ b/packages/PhpAttribute/NodeFactory/PhpNestedAttributeGroupFactory.php @@ -48,11 +48,6 @@ final class PhpNestedAttributeGroupFactory * @var \Rector\PhpAttribute\AttributeArrayNameInliner */ private $attributeArrayNameInliner; - /** - * @var string - * @see https://regex101.com/r/g3d9jy/1 - */ - private const SHORT_ORM_ALIAS_REGEX = '#^@ORM#'; public function __construct(AnnotationToAttributeMapper $annotationToAttributeMapper, \Rector\PhpAttribute\NodeFactory\AttributeNameFactory $attributeNameFactory, \Rector\PhpAttribute\NodeFactory\NamedArgsFactory $namedArgsFactory, ExprParameterReflectionTypeCorrector $exprParameterReflectionTypeCorrector, AttributeArrayNameInliner $attributeArrayNameInliner) { $this->annotationToAttributeMapper = $annotationToAttributeMapper; @@ -129,8 +124,7 @@ final class PhpNestedAttributeGroupFactory { /** @var string $shortDoctrineAttributeName */ $shortDoctrineAttributeName = Strings::after($annotationPropertyToAttributeClass->getAttributeClass(), '\\', -1); - $matches = Strings::match($originalIdentifier, self::SHORT_ORM_ALIAS_REGEX); - if ($matches !== null) { + if (\strncmp($originalIdentifier, '@ORM', \strlen('@ORM')) === 0) { // or alias return new Name('ORM\\' . $shortDoctrineAttributeName); } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 63d8869fd02..763490973be 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 = '7433ffeb07507632659635152b35af66320d1e07'; + public const PACKAGE_VERSION = 'e335cffdcff3e271bb1d0f352a6f6623f6e4ed2c'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-09-10 07:58:55'; + public const RELEASE_DATE = '2023-09-10 10:47:57'; /** * @var int */ diff --git a/vendor/autoload.php b/vendor/autoload.php index 76c6aea87f7..6ed1041bd7b 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitfbe60bacb74a262cac6f1ce20f958bdb::getLoader(); +return ComposerAutoloaderInitba560971b0e840315ce69f2ab4985531::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 7dbff94e6fd..599c7ce1dff 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitfbe60bacb74a262cac6f1ce20f958bdb +class ComposerAutoloaderInitba560971b0e840315ce69f2ab4985531 { private static $loader; @@ -22,17 +22,17 @@ class ComposerAutoloaderInitfbe60bacb74a262cac6f1ce20f958bdb return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitfbe60bacb74a262cac6f1ce20f958bdb', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitba560971b0e840315ce69f2ab4985531', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInitfbe60bacb74a262cac6f1ce20f958bdb', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitba560971b0e840315ce69f2ab4985531', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitfbe60bacb74a262cac6f1ce20f958bdb::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitba560971b0e840315ce69f2ab4985531::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInitfbe60bacb74a262cac6f1ce20f958bdb::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInitba560971b0e840315ce69f2ab4985531::$files; $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 0bfd2c80b82..078fd9fd570 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitfbe60bacb74a262cac6f1ce20f958bdb +class ComposerStaticInitba560971b0e840315ce69f2ab4985531 { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -2599,9 +2599,9 @@ class ComposerStaticInitfbe60bacb74a262cac6f1ce20f958bdb public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitfbe60bacb74a262cac6f1ce20f958bdb::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitfbe60bacb74a262cac6f1ce20f958bdb::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitfbe60bacb74a262cac6f1ce20f958bdb::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitba560971b0e840315ce69f2ab4985531::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitba560971b0e840315ce69f2ab4985531::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitba560971b0e840315ce69f2ab4985531::$classMap; }, null, ClassLoader::class); }