diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 61e930b1b21c..c015fec07a09 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 = 'f9d9f99f7ade07e3aa5fc40e6b6d3f2a17e9aa85'; + public const PACKAGE_VERSION = 'a808debdb28fa1dd32ed804c6276e9cac30f7d37'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-06-29 01:15:46'; + public const RELEASE_DATE = '2023-06-29 15:12:00'; /** * @var int */ diff --git a/src/PhpParser/Node/BetterNodeFinder.php b/src/PhpParser/Node/BetterNodeFinder.php index aef81311b569..4505599373fe 100644 --- a/src/PhpParser/Node/BetterNodeFinder.php +++ b/src/PhpParser/Node/BetterNodeFinder.php @@ -268,6 +268,9 @@ public function findFirstPrevious(Node $node, callable $filter) : ?Node return null; } if ($parentNode instanceof Node) { + if ($parentNode instanceof FileWithoutNamespace || $parentNode instanceof Namespace_) { + return null; + } return $this->findFirstPrevious($parentNode, $filter); } return null; @@ -292,6 +295,9 @@ public function findFirstNext(Node $node, callable $filter) : ?Node return null; } if ($parentNode instanceof Node) { + if ($parentNode instanceof FileWithoutNamespace || $parentNode instanceof Namespace_) { + return null; + } return $this->findFirstNext($parentNode, $filter); } return null; diff --git a/vendor/autoload.php b/vendor/autoload.php index 4949dadbdf17..fcf95a275b0f 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit8f470a1be91d9fb3d16449781cfeceba::getLoader(); +return ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 2dd219716682..c480771193f4 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit8f470a1be91d9fb3d16449781cfeceba +class ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f { private static $loader; @@ -22,17 +22,17 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit8f470a1be91d9fb3d16449781cfeceba', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit8f470a1be91d9fb3d16449781cfeceba', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitb6619cb9cfa3e4987bc69d90a7afb90f', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit8f470a1be91d9fb3d16449781cfeceba::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInit8f470a1be91d9fb3d16449781cfeceba::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::$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 8cc964f6e45f..b5d30986b606 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit8f470a1be91d9fb3d16449781cfeceba +class ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -3098,9 +3098,9 @@ class ComposerStaticInit8f470a1be91d9fb3d16449781cfeceba public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit8f470a1be91d9fb3d16449781cfeceba::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit8f470a1be91d9fb3d16449781cfeceba::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit8f470a1be91d9fb3d16449781cfeceba::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitb6619cb9cfa3e4987bc69d90a7afb90f::$classMap; }, null, ClassLoader::class); }