Skip to content

Commit

Permalink
Updated Rector to commit f403ca026144fc810918f6eb6178ea88f16c0641
Browse files Browse the repository at this point in the history
rectorphp/rector-src@f403ca0 [Performance] [PostRector] Only check phpdocinfo on Stmt and Param on NameImportingPostRector (#4558)
  • Loading branch information
TomasVotruba committed Jul 20, 2023
1 parent 26ecf7b commit a40539c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
6 changes: 4 additions & 2 deletions packages/PostRector/Rector/NameImportingPostRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare (strict_types=1);
namespace Rector\PostRector\Rector;

use PhpParser\Node\Param;
use PhpParser\Node;
use PhpParser\Node\Identifier;
use PhpParser\Node\Name;
Expand Down Expand Up @@ -96,11 +97,12 @@ public function enterNode(Node $node) : ?Node
if ($node instanceof Name) {
return $this->processNodeName($node, $file);
}
if (SimpleParameterProvider::provideBoolParameter(Option::AUTO_IMPORT_DOC_BLOCK_NAMES)) {
if (($node instanceof Stmt || $node instanceof Param) && SimpleParameterProvider::provideBoolParameter(Option::AUTO_IMPORT_DOC_BLOCK_NAMES)) {
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($node);
$this->docBlockNameImporter->importNames($phpDocInfo->getPhpDocNode(), $node);
return $node;
}
return $node;
return null;
}
public function getRuleDefinition() : RuleDefinition
{
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'e90812c07277304a4b57b62058f6d61ce9a11833';
public const PACKAGE_VERSION = 'f403ca026144fc810918f6eb6178ea88f16c0641';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-20 21:11:13';
public const RELEASE_DATE = '2023-07-21 04:05:33';
/**
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit29762075c4c169116a99dd54a4e4ecda::getLoader();
return ComposerAutoloaderInitcecd0c80d627eae86703ca38e6153385::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit29762075c4c169116a99dd54a4e4ecda
class ComposerAutoloaderInitcecd0c80d627eae86703ca38e6153385
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit29762075c4c169116a99dd54a4e4ecda', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitcecd0c80d627eae86703ca38e6153385', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit29762075c4c169116a99dd54a4e4ecda', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitcecd0c80d627eae86703ca38e6153385', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit29762075c4c169116a99dd54a4e4ecda::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitcecd0c80d627eae86703ca38e6153385::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInit29762075c4c169116a99dd54a4e4ecda::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitcecd0c80d627eae86703ca38e6153385::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit29762075c4c169116a99dd54a4e4ecda
class ComposerStaticInitcecd0c80d627eae86703ca38e6153385
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -3023,9 +3023,9 @@ class ComposerStaticInit29762075c4c169116a99dd54a4e4ecda
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit29762075c4c169116a99dd54a4e4ecda::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit29762075c4c169116a99dd54a4e4ecda::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit29762075c4c169116a99dd54a4e4ecda::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitcecd0c80d627eae86703ca38e6153385::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitcecd0c80d627eae86703ca38e6153385::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitcecd0c80d627eae86703ca38e6153385::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit a40539c

Please sign in to comment.