Updated Rector to commit ba04cef4f0aed1b1bda356cc9207bb108bd97657

ba04cef4f0 Reduce ConstExprClassNameDecorator overhead (#4603)
This commit is contained in:
Tomas Votruba 2023-07-25 14:46:15 +00:00
parent f048634812
commit 294fd68b81
7 changed files with 21 additions and 17 deletions

View File

@ -34,6 +34,10 @@ final class ConstExprClassNameDecorator implements PhpDocNodeDecoratorInterface
}
public function decorate(PhpDocNode $phpDocNode, PhpNode $phpNode) : void
{
// iterating all phpdocs has big overhead. peek into the phpdoc to exit early
if ((\strpos($phpDocNode->__toString(), '::') !== \false) === \false) {
return;
}
$this->phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function (Node $node) use($phpNode) : ?\PHPStan\PhpDocParser\Ast\Node {
if (!$node instanceof ConstFetchNode) {
return null;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '2951cc868ed80561d8c0370efb9516cc3c862bfe';
public const PACKAGE_VERSION = 'ba04cef4f0aed1b1bda356cc9207bb108bd97657';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-25 13:14:36';
public const RELEASE_DATE = '2023-07-25 21:41:38';
/**
* @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 ComposerAutoloaderInit037c3070f79e631751bd2612d8e05f49::getLoader();
return ComposerAutoloaderInit6a95e2454b79e90b721c374e235c3e4a::getLoader();

View File

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

View File

@ -504,8 +504,8 @@
},
{
"name": "illuminate\/container",
"version": "v10.15.0",
"version_normalized": "10.15.0.0",
"version": "v10.16.0",
"version_normalized": "10.16.0.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/illuminate\/container.git",
@ -558,8 +558,8 @@
},
{
"name": "illuminate\/contracts",
"version": "v10.15.0",
"version_normalized": "10.15.0.0",
"version": "v10.16.0",
"version_normalized": "10.16.0.0",
"source": {
"type": "git",
"url": "https:\/\/github.com\/illuminate\/contracts.git",

File diff suppressed because one or more lines are too long