Skip to content

Commit

Permalink
Updated Rector to commit 42c4c635912957da83e9b0cc5881be7bcc4c5a73
Browse files Browse the repository at this point in the history
rectorphp/rector-src@42c4c63 [Php81] Skip property fetch from new static on ReadOnlyPropertyRector (#4617)
  • Loading branch information
TomasVotruba committed Jul 28, 2023
1 parent 1d52a6c commit 13c57eb
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 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 = '682df75fc015d0f267780ec5363aa74f82dba58b';
public const PACKAGE_VERSION = '42c4c635912957da83e9b0cc5881be7bcc4c5a73';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-28 20:06:56';
public const RELEASE_DATE = '2023-07-28 22:24:41';
/**
* @var int
*/
Expand Down
5 changes: 4 additions & 1 deletion src/PhpParser/NodeFinder/PropertyFetchFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ public function isLocalPropertyFetchByName(Expr $expr, $class, string $propertyN
return \true;
}
$type = $this->nodeTypeResolver->getType($expr->var);
return $type instanceof FullyQualifiedObjectType && $this->nodeNameResolver->isName($class, $type->getClassName());
if ($type instanceof \PHPStan\Type\StaticType || $type instanceof FullyQualifiedObjectType) {
return $this->nodeNameResolver->isName($class, $type->getClassName());
}
return \false;
}
/**
* @param Stmt[] $stmts
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 ComposerAutoloaderInit0650de368f938e31f14223145acdb538::getLoader();
return ComposerAutoloaderInit6b72a3b7a42ee6a1a7355258610b3fc4::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 ComposerAutoloaderInit0650de368f938e31f14223145acdb538
class ComposerAutoloaderInit6b72a3b7a42ee6a1a7355258610b3fc4
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit0650de368f938e31f14223145acdb538', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit6b72a3b7a42ee6a1a7355258610b3fc4', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit0650de368f938e31f14223145acdb538', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit6b72a3b7a42ee6a1a7355258610b3fc4', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit0650de368f938e31f14223145acdb538::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit6b72a3b7a42ee6a1a7355258610b3fc4::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInit0650de368f938e31f14223145acdb538::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit6b72a3b7a42ee6a1a7355258610b3fc4::$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 ComposerStaticInit0650de368f938e31f14223145acdb538
class ComposerStaticInit6b72a3b7a42ee6a1a7355258610b3fc4
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -3023,9 +3023,9 @@ class ComposerStaticInit0650de368f938e31f14223145acdb538
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit0650de368f938e31f14223145acdb538::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit0650de368f938e31f14223145acdb538::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit0650de368f938e31f14223145acdb538::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit6b72a3b7a42ee6a1a7355258610b3fc4::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit6b72a3b7a42ee6a1a7355258610b3fc4::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit6b72a3b7a42ee6a1a7355258610b3fc4::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit 13c57eb

Please sign in to comment.