Updated Rector to commit f7109a6d101aabc5e6a113c536bc0f6d5b598226

f7109a6d10 [PhpParser] Clean up current($nodes) check on FileWithoutNamespaceNodeTraverser (#4373)
This commit is contained in:
Tomas Votruba 2023-06-28 17:39:11 +00:00
parent ebbf202379
commit c534b5e3d4
5 changed files with 12 additions and 15 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '3d165eb8ef551c6a3912bc664f5255ee572b3235';
public const PACKAGE_VERSION = 'f7109a6d101aabc5e6a113c536bc0f6d5b598226';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-06-29 00:00:16';
public const RELEASE_DATE = '2023-06-29 00:34:37';
/**
* @var int
*/

View File

@ -28,9 +28,6 @@ final class FileWithoutNamespaceNodeTraverser extends NodeTraverser
*/
public function traverse(array $nodes) : array
{
if (\current($nodes) instanceof FileWithoutNamespace) {
return $nodes;
}
$hasNamespace = (bool) $this->nodeFinder->findFirstInstanceOf($nodes, Namespace_::class);
if (!$hasNamespace && $nodes !== []) {
$fileWithoutNamespace = new FileWithoutNamespace($nodes);

2
vendor/autoload.php vendored
View File

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

View File

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