mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit 4dee58ba84af36784c9fbf7d8e964363dd15ecc0
4dee58ba84
[Php81] Fix property with attribute inlined on ReadOnlyPropertyRector (#1869)
This commit is contained in:
parent
7ca19c8bbf
commit
7afdbe00e6
@ -11,6 +11,7 @@ use Rector\Core\NodeManipulator\PropertyManipulator;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\Core\ValueObject\Visibility;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\Privatization\NodeManipulator\VisibilityManipulator;
|
||||
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
@ -109,6 +110,10 @@ CODE_SAMPLE
|
||||
return null;
|
||||
}
|
||||
$this->visibilityManipulator->makeReadonly($property);
|
||||
$attributeGroups = $property->attrGroups;
|
||||
if ($attributeGroups !== []) {
|
||||
$property->setAttribute(\Rector\NodeTypeResolver\Node\AttributeKey::ORIGINAL_NODE, null);
|
||||
}
|
||||
return $property;
|
||||
}
|
||||
/**
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '961c3aea5c550c4b7bb3b4c2f781a2e22625dc13';
|
||||
public const PACKAGE_VERSION = '4dee58ba84af36784c9fbf7d8e964363dd15ecc0';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-02-25 10:53:16';
|
||||
public const RELEASE_DATE = '2022-02-25 13:27:26';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20220225\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4::getLoader();
|
||||
return ComposerAutoloaderInitb2f6ef9aa3efccceaff64a64066e4736::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4
|
||||
class ComposerAutoloaderInitb2f6ef9aa3efccceaff64a64066e4736
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb2f6ef9aa3efccceaff64a64066e4736', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb2f6ef9aa3efccceaff64a64066e4736', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitc738af475abd389b6cabd3c4dadaeab4::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb2f6ef9aa3efccceaff64a64066e4736::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,12 +42,12 @@ class ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitc738af475abd389b6cabd3c4dadaeab4::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitb2f6ef9aa3efccceaff64a64066e4736::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirec738af475abd389b6cabd3c4dadaeab4($fileIdentifier, $file);
|
||||
composerRequireb2f6ef9aa3efccceaff64a64066e4736($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -59,7 +59,7 @@ class ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequirec738af475abd389b6cabd3c4dadaeab4($fileIdentifier, $file)
|
||||
function composerRequireb2f6ef9aa3efccceaff64a64066e4736($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 ComposerStaticInitc738af475abd389b6cabd3c4dadaeab4
|
||||
class ComposerStaticInitb2f6ef9aa3efccceaff64a64066e4736
|
||||
{
|
||||
public static $files = array (
|
||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||
@ -3848,9 +3848,9 @@ class ComposerStaticInitc738af475abd389b6cabd3c4dadaeab4
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitc738af475abd389b6cabd3c4dadaeab4::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitc738af475abd389b6cabd3c4dadaeab4::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitc738af475abd389b6cabd3c4dadaeab4::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb2f6ef9aa3efccceaff64a64066e4736::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb2f6ef9aa3efccceaff64a64066e4736::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb2f6ef9aa3efccceaff64a64066e4736::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
6
vendor/composer/installed.json
vendored
6
vendor/composer/installed.json
vendored
@ -3950,12 +3950,12 @@
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"RectorPrefix20220225\\Symfony\\Component\\String\\": ""
|
||||
},
|
||||
"files": [
|
||||
"Resources\/functions.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"RectorPrefix20220225\\Symfony\\Component\\String\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"\/Tests\/"
|
||||
]
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20220225\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4', false) && !interface_exists('ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4', false) && !trait_exists('ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4', false)) {
|
||||
spl_autoload_call('RectorPrefix20220225\ComposerAutoloaderInitc738af475abd389b6cabd3c4dadaeab4');
|
||||
if (!class_exists('ComposerAutoloaderInitb2f6ef9aa3efccceaff64a64066e4736', false) && !interface_exists('ComposerAutoloaderInitb2f6ef9aa3efccceaff64a64066e4736', false) && !trait_exists('ComposerAutoloaderInitb2f6ef9aa3efccceaff64a64066e4736', false)) {
|
||||
spl_autoload_call('RectorPrefix20220225\ComposerAutoloaderInitb2f6ef9aa3efccceaff64a64066e4736');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20220225\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20220225\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequirec738af475abd389b6cabd3c4dadaeab4')) {
|
||||
function composerRequirec738af475abd389b6cabd3c4dadaeab4() {
|
||||
return \RectorPrefix20220225\composerRequirec738af475abd389b6cabd3c4dadaeab4(...func_get_args());
|
||||
if (!function_exists('composerRequireb2f6ef9aa3efccceaff64a64066e4736')) {
|
||||
function composerRequireb2f6ef9aa3efccceaff64a64066e4736() {
|
||||
return \RectorPrefix20220225\composerRequireb2f6ef9aa3efccceaff64a64066e4736(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user