Skip to content

Commit

Permalink
Updated Rector to commit f7109a6d101aabc5e6a113c536bc0f6d5b598226
Browse files Browse the repository at this point in the history
rectorphp/rector-src@f7109a6 [PhpParser] Clean up current($nodes) check on FileWithoutNamespaceNodeTraverser (#4373)
  • Loading branch information
TomasVotruba committed Jun 28, 2023
1 parent ebbf202 commit c534b5e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
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 = '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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ public function __construct(NodeFinder $nodeFinder)
*/
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);
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 ComposerAutoloaderInitf133d4f5a8838c5c2354cbb64e7a1020::getLoader();
return ComposerAutoloaderInitae5e6601fb93d8e160b57dfb338e6b9c::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 ComposerAutoloaderInitf133d4f5a8838c5c2354cbb64e7a1020
class ComposerAutoloaderInitae5e6601fb93d8e160b57dfb338e6b9c
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
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;
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 ComposerStaticInitf133d4f5a8838c5c2354cbb64e7a1020
class ComposerStaticInitae5e6601fb93d8e160b57dfb338e6b9c
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit c534b5e

Please sign in to comment.