mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 5ee831f533cf97bc985b381cfd067122e2a479d2
5ee831f533
[TypeDeclaration] Add return static property support on ReturnTypeFromStrictTypedPropertyRector (#5050)
This commit is contained in:
parent
db78ff1331
commit
3a35226590
|
@ -6,6 +6,7 @@ namespace Rector\TypeDeclaration\Rector\ClassMethod;
|
|||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\PropertyFetch;
|
||||
use PhpParser\Node\Expr\StaticPropertyFetch;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Return_;
|
||||
use PHPStan\Analyser\Scope;
|
||||
|
@ -123,7 +124,7 @@ CODE_SAMPLE
|
|||
if (!$return->expr instanceof Expr) {
|
||||
return [];
|
||||
}
|
||||
if (!$return->expr instanceof PropertyFetch) {
|
||||
if (!$return->expr instanceof PropertyFetch && !$return->expr instanceof StaticPropertyFetch) {
|
||||
return [];
|
||||
}
|
||||
$phpPropertyReflection = $this->reflectionResolver->resolvePropertyReflectionFromPropertyFetch($return->expr);
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '76611f69af76327be04538df7b8c568600ac58c0';
|
||||
public const PACKAGE_VERSION = '5ee831f533cf97bc985b381cfd067122e2a479d2';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-09-19 13:41:52';
|
||||
public const RELEASE_DATE = '2023-09-19 20:44:58';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitf9c52d911e61ea754f759891a6eaa5cd::getLoader();
|
||||
return ComposerAutoloaderInitbbc68dcb7339bb3e7d2fa85f7100ddc0::getLoader();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitf9c52d911e61ea754f759891a6eaa5cd
|
||||
class ComposerAutoloaderInitbbc68dcb7339bb3e7d2fa85f7100ddc0
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,17 +22,17 @@ class ComposerAutoloaderInitf9c52d911e61ea754f759891a6eaa5cd
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitf9c52d911e61ea754f759891a6eaa5cd', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitbbc68dcb7339bb3e7d2fa85f7100ddc0', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitf9c52d911e61ea754f759891a6eaa5cd', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitbbc68dcb7339bb3e7d2fa85f7100ddc0', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitf9c52d911e61ea754f759891a6eaa5cd::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitbbc68dcb7339bb3e7d2fa85f7100ddc0::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitf9c52d911e61ea754f759891a6eaa5cd::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitbbc68dcb7339bb3e7d2fa85f7100ddc0::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitf9c52d911e61ea754f759891a6eaa5cd
|
||||
class ComposerStaticInitbbc68dcb7339bb3e7d2fa85f7100ddc0
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
|
@ -2601,9 +2601,9 @@ class ComposerStaticInitf9c52d911e61ea754f759891a6eaa5cd
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitf9c52d911e61ea754f759891a6eaa5cd::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitf9c52d911e61ea754f759891a6eaa5cd::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitf9c52d911e61ea754f759891a6eaa5cd::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitbbc68dcb7339bb3e7d2fa85f7100ddc0::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitbbc68dcb7339bb3e7d2fa85f7100ddc0::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitbbc68dcb7339bb3e7d2fa85f7100ddc0::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue