Updated Rector to commit c8ff683305a228aa2bfbe2c11eccc7a712c5db94

c8ff683305 Remove inline-@var use (#5028)
This commit is contained in:
Tomas Votruba 2023-09-16 11:45:20 +00:00
parent c33ef2a625
commit 01c783a2bf
8 changed files with 15 additions and 15 deletions

View File

@ -136,7 +136,6 @@ CODE_SAMPLE
if (!$this->propertyFetchAnalyzer->isPropertyFetch($expr)) { if (!$this->propertyFetchAnalyzer->isPropertyFetch($expr)) {
return $this->exprAnalyzer->isNonTypedFromParam($expr); return $this->exprAnalyzer->isNonTypedFromParam($expr);
} }
/** @var PropertyFetch|StaticPropertyFetch $expr */
$phpPropertyReflection = $this->reflectionResolver->resolvePropertyReflectionFromPropertyFetch($expr); $phpPropertyReflection = $this->reflectionResolver->resolvePropertyReflectionFromPropertyFetch($expr);
if (!$phpPropertyReflection instanceof PhpPropertyReflection) { if (!$phpPropertyReflection instanceof PhpPropertyReflection) {
$propertyType = $expr instanceof StaticPropertyFetch ? $this->nodeTypeResolver->getType($expr->class) : $this->nodeTypeResolver->getType($expr->var); $propertyType = $expr instanceof StaticPropertyFetch ? $this->nodeTypeResolver->getType($expr->class) : $this->nodeTypeResolver->getType($expr->var);

View File

@ -79,7 +79,6 @@ final class CountableAnalyzer
if ($arrayType instanceof ConstantArrayType) { if ($arrayType instanceof ConstantArrayType) {
return \false; return \false;
} }
/** @var StaticPropertyFetch|PropertyFetch $expr */
$callerObjectType = $expr instanceof StaticPropertyFetch ? $this->nodeTypeResolver->getType($expr->class) : $this->nodeTypeResolver->getType($expr->var); $callerObjectType = $expr instanceof StaticPropertyFetch ? $this->nodeTypeResolver->getType($expr->class) : $this->nodeTypeResolver->getType($expr->var);
$propertyName = $this->nodeNameResolver->getName($expr->name); $propertyName = $this->nodeNameResolver->getName($expr->name);
if (!\is_string($propertyName)) { if (!\is_string($propertyName)) {

View File

@ -107,7 +107,6 @@ final class ParentPropertyLookupGuard
if (!$this->propertyFetchAnalyzer->isPropertyFetch($subNode)) { if (!$this->propertyFetchAnalyzer->isPropertyFetch($subNode)) {
return \false; return \false;
} }
/** @var PropertyFetch|StaticPropertyFetch $subNode */
if ($subNode instanceof PropertyFetch) { if ($subNode instanceof PropertyFetch) {
if (!$subNode->var instanceof Variable) { if (!$subNode->var instanceof Variable) {
return \false; return \false;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = 'e6d5d3620448b27bce7d080c9832558e2f6cdf38'; public const PACKAGE_VERSION = 'c8ff683305a228aa2bfbe2c11eccc7a712c5db94';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2023-09-16 10:06:09'; public const RELEASE_DATE = '2023-09-16 13:42:27';
/** /**
* @var int * @var int
*/ */

View File

@ -103,6 +103,9 @@ final class PropertyFetchAnalyzer
return $this->isLocalPropertyFetchName($node, $propertyName); return $this->isLocalPropertyFetchName($node, $propertyName);
}); });
} }
/**
* @phpstan-assert-if-true PropertyFetch|StaticPropertyFetch $node
*/
public function isPropertyFetch(Node $node) : bool public function isPropertyFetch(Node $node) : bool
{ {
if ($node instanceof PropertyFetch) { if ($node instanceof PropertyFetch) {

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInit37ea0ec6a03746301fe91851386ed278 class ComposerAutoloaderInitf2f9f32ac35c78d31d1040c9deef4344
{ {
private static $loader; private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit37ea0ec6a03746301fe91851386ed278
return self::$loader; return self::$loader;
} }
spl_autoload_register(array('ComposerAutoloaderInit37ea0ec6a03746301fe91851386ed278', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInitf2f9f32ac35c78d31d1040c9deef4344', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit37ea0ec6a03746301fe91851386ed278', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInitf2f9f32ac35c78d31d1040c9deef4344', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php'; require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit37ea0ec6a03746301fe91851386ed278::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInitf2f9f32ac35c78d31d1040c9deef4344::getInitializer($loader));
$loader->setClassMapAuthoritative(true); $loader->setClassMapAuthoritative(true);
$loader->register(true); $loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit37ea0ec6a03746301fe91851386ed278::$files; $filesToLoad = \Composer\Autoload\ComposerStaticInitf2f9f32ac35c78d31d1040c9deef4344::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) { $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInit37ea0ec6a03746301fe91851386ed278 class ComposerStaticInitf2f9f32ac35c78d31d1040c9deef4344
{ {
public static $files = array ( public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2593,9 +2593,9 @@ class ComposerStaticInit37ea0ec6a03746301fe91851386ed278
public static function getInitializer(ClassLoader $loader) public static function getInitializer(ClassLoader $loader)
{ {
return \Closure::bind(function () use ($loader) { return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit37ea0ec6a03746301fe91851386ed278::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInitf2f9f32ac35c78d31d1040c9deef4344::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit37ea0ec6a03746301fe91851386ed278::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInitf2f9f32ac35c78d31d1040c9deef4344::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit37ea0ec6a03746301fe91851386ed278::$classMap; $loader->classMap = ComposerStaticInitf2f9f32ac35c78d31d1040c9deef4344::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }