mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit cb4e5de3792cb2006383a70152ed0556642ca336
cb4e5de379
[build] do not update dev depenencies after phpstan/phpstan removal
This commit is contained in:
parent
8bfbd2f5d4
commit
de657e6fed
|
@ -123,12 +123,15 @@ CODE_SAMPLE
|
|||
}
|
||||
private function refactorProperty(Class_ $class, string $propertyName, Expr $defaultExpr, ClassMethod $constructClassMethod, int $key) : bool
|
||||
{
|
||||
if ($class->isReadonly()) {
|
||||
return \false;
|
||||
}
|
||||
foreach ($class->stmts as $classStmt) {
|
||||
if (!$classStmt instanceof Property) {
|
||||
continue;
|
||||
}
|
||||
// readonly property cannot have default value
|
||||
if ($classStmt->isReadonly() || $class->isReadonly()) {
|
||||
if ($classStmt->isReadonly()) {
|
||||
continue;
|
||||
}
|
||||
foreach ($classStmt->props as $propertyProperty) {
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '4faaeba9f3cb1cce8d85db4e29dac2bc76b1933e';
|
||||
public const PACKAGE_VERSION = 'cb4e5de3792cb2006383a70152ed0556642ca336';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-09-27 15:05:26';
|
||||
public const RELEASE_DATE = '2023-09-27 15:41:40';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit533f3d6c156444d75e1d973c6340b3a0::getLoader();
|
||||
return ComposerAutoloaderInitb8e918a61bf0a4ee930cd43b00530bfd::getLoader();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit533f3d6c156444d75e1d973c6340b3a0
|
||||
class ComposerAutoloaderInitb8e918a61bf0a4ee930cd43b00530bfd
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,17 +22,17 @@ class ComposerAutoloaderInit533f3d6c156444d75e1d973c6340b3a0
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit533f3d6c156444d75e1d973c6340b3a0', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb8e918a61bf0a4ee930cd43b00530bfd', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit533f3d6c156444d75e1d973c6340b3a0', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb8e918a61bf0a4ee930cd43b00530bfd', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit533f3d6c156444d75e1d973c6340b3a0::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb8e918a61bf0a4ee930cd43b00530bfd::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit533f3d6c156444d75e1d973c6340b3a0::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitb8e918a61bf0a4ee930cd43b00530bfd::$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 ComposerStaticInit533f3d6c156444d75e1d973c6340b3a0
|
||||
class ComposerStaticInitb8e918a61bf0a4ee930cd43b00530bfd
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
|
@ -2601,9 +2601,9 @@ class ComposerStaticInit533f3d6c156444d75e1d973c6340b3a0
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit533f3d6c156444d75e1d973c6340b3a0::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit533f3d6c156444d75e1d973c6340b3a0::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit533f3d6c156444d75e1d973c6340b3a0::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb8e918a61bf0a4ee930cd43b00530bfd::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb8e918a61bf0a4ee930cd43b00530bfd::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb8e918a61bf0a4ee930cd43b00530bfd::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue