From 455a66f4b6df50d203d23a38577cce9fc23d8c57 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 17 Jun 2023 07:46:33 +0000 Subject: [PATCH] Updated Rector to commit 628260708ccc40d17e1ef2147774170ac030597f https://github.com/rectorphp/rector-src/commit/628260708ccc40d17e1ef2147774170ac030597f [Performance] Only map comment to php_doc_info for Stmt and Param on BetterStandardPrinter (#4250) --- src/Application/VersionResolver.php | 4 ++-- src/PhpParser/Printer/BetterStandardPrinter.php | 3 ++- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 10 +++++----- vendor/composer/autoload_static.php | 8 ++++---- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index c561cb2981c..2e451889bf0 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 = '1d262193e2c28acd5e61733de4a067e30eb51936'; + public const PACKAGE_VERSION = '628260708ccc40d17e1ef2147774170ac030597f'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-06-17 13:16:44'; + public const RELEASE_DATE = '2023-06-17 14:41:44'; /** * @var int */ diff --git a/src/PhpParser/Printer/BetterStandardPrinter.php b/src/PhpParser/Printer/BetterStandardPrinter.php index f09113934be..87f2090de9c 100644 --- a/src/PhpParser/Printer/BetterStandardPrinter.php +++ b/src/PhpParser/Printer/BetterStandardPrinter.php @@ -3,6 +3,7 @@ declare (strict_types=1); namespace Rector\Core\PhpParser\Printer; +use PhpParser\Node\Stmt; use RectorPrefix202306\Nette\Utils\Strings; use PhpParser\Comment; use PhpParser\Node; @@ -433,7 +434,7 @@ final class BetterStandardPrinter extends Standard { // move phpdoc from node to "comment" attribute foreach ($nodes as $node) { - if (!$node instanceof Node) { + if (!$node instanceof Stmt && !$node instanceof Param) { continue; } $this->docBlockUpdater->updateNodeWithPhpDocInfo($node); diff --git a/vendor/autoload.php b/vendor/autoload.php index b4bf5f86ae3..2ada6a44ac3 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 ComposerAutoloaderInit3125a7387f933c54b227753c08ffa384::getLoader(); +return ComposerAutoloaderInit6d42e8b0ef15f7135414b7766c2104e1::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index a39e46f0091..a714dadd35b 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit3125a7387f933c54b227753c08ffa384 +class ComposerAutoloaderInit6d42e8b0ef15f7135414b7766c2104e1 { private static $loader; @@ -22,17 +22,17 @@ class ComposerAutoloaderInit3125a7387f933c54b227753c08ffa384 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit3125a7387f933c54b227753c08ffa384', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit6d42e8b0ef15f7135414b7766c2104e1', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit3125a7387f933c54b227753c08ffa384', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit6d42e8b0ef15f7135414b7766c2104e1', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit3125a7387f933c54b227753c08ffa384::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit6d42e8b0ef15f7135414b7766c2104e1::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInit3125a7387f933c54b227753c08ffa384::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInit6d42e8b0ef15f7135414b7766c2104e1::$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 9b422dbe682..ce761000e5b 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit3125a7387f933c54b227753c08ffa384 +class ComposerStaticInit6d42e8b0ef15f7135414b7766c2104e1 { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -3094,9 +3094,9 @@ class ComposerStaticInit3125a7387f933c54b227753c08ffa384 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit3125a7387f933c54b227753c08ffa384::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit3125a7387f933c54b227753c08ffa384::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit3125a7387f933c54b227753c08ffa384::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit6d42e8b0ef15f7135414b7766c2104e1::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit6d42e8b0ef15f7135414b7766c2104e1::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit6d42e8b0ef15f7135414b7766c2104e1::$classMap; }, null, ClassLoader::class); }