Updated Rector to commit 98b203a5d9caa1aacb75bb22a45617f228c3516a

98b203a5d9 Fix name (#4788)
This commit is contained in:
Tomas Votruba 2023-08-14 10:12:37 +00:00
parent 951076fc19
commit 846609aadf
5 changed files with 18 additions and 18 deletions

View File

@ -365,11 +365,11 @@ final class PHPStanNodeScopeResolver
return $classLike->name->toString();
}
/**
* @param callable(Node $node, MutatingScope $scope): void $nodeCallback
* @param callable(Node $trait, MutatingScope $scope): void $nodeCallback
*/
private function processTrait(Trait_ $node, MutatingScope $mutatingScope, callable $nodeCallback) : void
private function processTrait(Trait_ $trait, MutatingScope $mutatingScope, callable $nodeCallback) : void
{
$traitName = $this->resolveClassName($node);
$traitName = $this->resolveClassName($trait);
$traitClassReflection = $this->reflectionProvider->getClass($traitName);
$traitScope = clone $mutatingScope;
/** @var ScopeContext $scopeContext */
@ -378,8 +378,8 @@ final class PHPStanNodeScopeResolver
// before entering the class/trait again, we have to tell scope no class was set, otherwise it crashes
$this->privatesAccessor->setPrivateProperty($traitContext, 'classReflection', $traitClassReflection);
$this->privatesAccessor->setPrivateProperty($traitScope, self::CONTEXT, $traitContext);
$node->setAttribute(AttributeKey::SCOPE, $traitScope);
$this->nodeScopeResolver->processNodes($node->stmts, $traitScope, $nodeCallback);
$this->decorateTraitAttrGroups($node, $traitScope);
$trait->setAttribute(AttributeKey::SCOPE, $traitScope);
$this->nodeScopeResolver->processNodes($trait->stmts, $traitScope, $nodeCallback);
$this->decorateTraitAttrGroups($trait, $traitScope);
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '90b832dc4f10d04b32f2c0cbc473082f6ccd11fb';
public const PACKAGE_VERSION = '98b203a5d9caa1aacb75bb22a45617f228c3516a';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-08-14 09:54:00';
public const RELEASE_DATE = '2023-08-14 10:09:07';
/**
* @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 ComposerAutoloaderInit279adfe741cabe4d325728768e1fe089::getLoader();
return ComposerAutoloaderInit2730a0a44b463269d6ca3be1f5a2a0f8::getLoader();

View File

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