mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 05:18:18 +01:00
Updated Rector to commit 4fbeab88e1b505c0740e66d53864667cc3d7700a
4fbeab88e1
fix(rules): Skip readonly classes from restoring default null value. (#4479)
This commit is contained in:
parent
802b78e28b
commit
72fec64c3b
@ -55,6 +55,9 @@ CODE_SAMPLE
|
||||
*/
|
||||
public function refactor(Node $node) : ?Node
|
||||
{
|
||||
if ($node->isReadonly()) {
|
||||
return null;
|
||||
}
|
||||
$hasChanged = \false;
|
||||
foreach ($node->getProperties() as $property) {
|
||||
if ($this->shouldSkip($property, $node)) {
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'dd6a1fb651c07c558d28a9dcf72ff1248b2c0614';
|
||||
public const PACKAGE_VERSION = '4fbeab88e1b505c0740e66d53864667cc3d7700a';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-07-11 21:46:46';
|
||||
public const RELEASE_DATE = '2023-07-11 21:57:44';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit21750e9b533e09e9a513cddc1cf45846::getLoader();
|
||||
return ComposerAutoloaderInit24a1109c1d760c42abf0f28bd50aa4c9::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit21750e9b533e09e9a513cddc1cf45846
|
||||
class ComposerAutoloaderInit24a1109c1d760c42abf0f28bd50aa4c9
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInit21750e9b533e09e9a513cddc1cf45846
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit21750e9b533e09e9a513cddc1cf45846', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit24a1109c1d760c42abf0f28bd50aa4c9', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit21750e9b533e09e9a513cddc1cf45846', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit24a1109c1d760c42abf0f28bd50aa4c9', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit21750e9b533e09e9a513cddc1cf45846::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit24a1109c1d760c42abf0f28bd50aa4c9::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit21750e9b533e09e9a513cddc1cf45846::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit24a1109c1d760c42abf0f28bd50aa4c9::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit21750e9b533e09e9a513cddc1cf45846
|
||||
class ComposerStaticInit24a1109c1d760c42abf0f28bd50aa4c9
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3062,9 +3062,9 @@ class ComposerStaticInit21750e9b533e09e9a513cddc1cf45846
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit21750e9b533e09e9a513cddc1cf45846::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit21750e9b533e09e9a513cddc1cf45846::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit21750e9b533e09e9a513cddc1cf45846::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit24a1109c1d760c42abf0f28bd50aa4c9::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit24a1109c1d760c42abf0f28bd50aa4c9::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit24a1109c1d760c42abf0f28bd50aa4c9::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user