Updated Rector to commit 6b20ed1b7507740b9568ef1b6cec125849172f9e

6b20ed1b75 [Traverser] Clean up: Remove afterTraverse() on StmtKeyNodeVisitor (#3903)
This commit is contained in:
Tomas Votruba 2023-05-20 17:12:03 +00:00
parent cb0cb645f5
commit d597a0e3f6
5 changed files with 12 additions and 27 deletions

View File

@ -4,7 +4,6 @@ declare (strict_types=1);
namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
use PhpParser\Node;
use PhpParser\Node\Stmt\Namespace_;
use PhpParser\NodeVisitorAbstract;
use Rector\Core\Contract\PhpParser\Node\StmtsAwareInterface;
use Rector\Core\PhpParser\Node\CustomNode\FileWithoutNamespace;
@ -33,20 +32,6 @@ final class StmtKeyNodeVisitor extends NodeVisitorAbstract implements ScopeResol
}
return $nodes;
}
/**
* @param Node[] $nodes
* @return Node[]
*/
public function afterTraverse(array $nodes) : array
{
foreach ($nodes as $key => $node) {
if (!$node instanceof Namespace_) {
return $nodes;
}
$node->setAttribute(AttributeKey::STMT_KEY, $key);
}
return $nodes;
}
public function enterNode(Node $node) : ?Node
{
if (!$node instanceof StmtsAwareInterface) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'e26c80b297515d924f61ed8518a42cdcbe666e19';
public const PACKAGE_VERSION = '6b20ed1b7507740b9568ef1b6cec125849172f9e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-05-20 22:11:29';
public const RELEASE_DATE = '2023-05-21 00:07:58';
/**
* @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 ComposerAutoloaderInitbdaddd86c9b130135d27e3788efb84a2::getLoader();
return ComposerAutoloaderInitba0a8fd158cca3104cbc629349c0b752::getLoader();

View File

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