Updated Rector to commit e335cffdcff3e271bb1d0f352a6f6623f6e4ed2c

e335cffdcf [PhpAttribute] Reduce regex start with ^@ORM at PhpNestedAttributeGroupFactory (#4958)
This commit is contained in:
Tomas Votruba 2023-09-10 03:51:21 +00:00
parent 8a3c738dcd
commit ec8c97b1b0
5 changed files with 13 additions and 19 deletions

View File

@ -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);
}

View File

@ -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
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitfbe60bacb74a262cac6f1ce20f958bdb::getLoader();
return ComposerAutoloaderInitba560971b0e840315ce69f2ab4985531::getLoader();

View File

@ -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;

View File

@ -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);
}