Updated Rector to commit cda957718f1eb9d1629bc27ed8b060c6f41ce033

cda957718f [Performance][Printer] Reduce regex check use( no space on BetterStandardPrinter (#4971)
This commit is contained in:
Tomas Votruba 2023-09-10 18:48:21 +00:00
parent 44ac4c0b00
commit aaa2d927d5
5 changed files with 13 additions and 18 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'b5c8f9a8930520277828986608fda0b75ef5381a';
public const PACKAGE_VERSION = 'cda957718f1eb9d1629bc27ed8b060c6f41ce033';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-09-10 16:37:09';
public const RELEASE_DATE = '2023-09-11 01:44:58';
/**
* @var int
*/

View File

@ -44,11 +44,6 @@ final class BetterStandardPrinter extends Standard
* @var \Rector\Comments\NodeDocBlock\DocBlockUpdater
*/
private $docBlockUpdater;
/**
* @var string
* @see https://regex101.com/r/F5x783/1
*/
private const USE_REGEX = '#( use)\\(#';
/**
* @var string
* @see https://regex101.com/r/DrsMY4/1
@ -237,7 +232,7 @@ final class BetterStandardPrinter extends Standard
if ($closure->uses === []) {
return $closureContent;
}
return Strings::replace($closureContent, self::USE_REGEX, '$1 (');
return \str_replace(' use(', ' use (', (string) $closureContent);
}
/**
* Do not add "()" on Expressions

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit8b3ff79e67bfd1ab93394997dc67f08d
class ComposerAutoloaderInit8bff98b209525c681c1ca842fdc76b10
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit8b3ff79e67bfd1ab93394997dc67f08d
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit8b3ff79e67bfd1ab93394997dc67f08d', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit8bff98b209525c681c1ca842fdc76b10', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit8b3ff79e67bfd1ab93394997dc67f08d', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit8bff98b209525c681c1ca842fdc76b10', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit8b3ff79e67bfd1ab93394997dc67f08d::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit8bff98b209525c681c1ca842fdc76b10::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit8b3ff79e67bfd1ab93394997dc67f08d::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit8bff98b209525c681c1ca842fdc76b10::$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 ComposerStaticInit8b3ff79e67bfd1ab93394997dc67f08d
class ComposerStaticInit8bff98b209525c681c1ca842fdc76b10
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2599,9 +2599,9 @@ class ComposerStaticInit8b3ff79e67bfd1ab93394997dc67f08d
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit8b3ff79e67bfd1ab93394997dc67f08d::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit8b3ff79e67bfd1ab93394997dc67f08d::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit8b3ff79e67bfd1ab93394997dc67f08d::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit8bff98b209525c681c1ca842fdc76b10::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit8bff98b209525c681c1ca842fdc76b10::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit8bff98b209525c681c1ca842fdc76b10::$classMap;
}, null, ClassLoader::class);
}