mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit b090cedeb5249554f17d811abc61234741d7c207
b090cedeb5
Bump to phpstan ^1.9.4 (#3214)
This commit is contained in:
parent
311e5c0c0c
commit
1767bf4e17
|
@ -7,7 +7,7 @@
|
|||
],
|
||||
"require": {
|
||||
"php": "^7.2|^8.0",
|
||||
"phpstan/phpstan": "^1.9.3"
|
||||
"phpstan/phpstan": "^1.9.4"
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
|
|
|
@ -17,12 +17,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'e895bceed66b12ddc80fcf90314ac576ae9efe4f';
|
||||
public const PACKAGE_VERSION = 'b090cedeb5249554f17d811abc61234741d7c207';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-12-17 14:40:26';
|
||||
public const RELEASE_DATE = '2022-12-17 15:35:25';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitf27522c433d65a137f31104c6923a60f::getLoader();
|
||||
return ComposerAutoloaderInit0d6fc333f230d1e8c971a3f46575eec4::getLoader();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitf27522c433d65a137f31104c6923a60f
|
||||
class ComposerAutoloaderInit0d6fc333f230d1e8c971a3f46575eec4
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,19 +22,19 @@ class ComposerAutoloaderInitf27522c433d65a137f31104c6923a60f
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitf27522c433d65a137f31104c6923a60f', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit0d6fc333f230d1e8c971a3f46575eec4', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitf27522c433d65a137f31104c6923a60f', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit0d6fc333f230d1e8c971a3f46575eec4', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitf27522c433d65a137f31104c6923a60f::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit0d6fc333f230d1e8c971a3f46575eec4::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitf27522c433d65a137f31104c6923a60f::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit0d6fc333f230d1e8c971a3f46575eec4::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequiref27522c433d65a137f31104c6923a60f($fileIdentifier, $file);
|
||||
composerRequire0d6fc333f230d1e8c971a3f46575eec4($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -46,7 +46,7 @@ class ComposerAutoloaderInitf27522c433d65a137f31104c6923a60f
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequiref27522c433d65a137f31104c6923a60f($fileIdentifier, $file)
|
||||
function composerRequire0d6fc333f230d1e8c971a3f46575eec4($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitf27522c433d65a137f31104c6923a60f
|
||||
class ComposerStaticInit0d6fc333f230d1e8c971a3f46575eec4
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
|
@ -3054,9 +3054,9 @@ class ComposerStaticInitf27522c433d65a137f31104c6923a60f
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitf27522c433d65a137f31104c6923a60f::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitf27522c433d65a137f31104c6923a60f::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitf27522c433d65a137f31104c6923a60f::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0d6fc333f230d1e8c971a3f46575eec4::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit0d6fc333f230d1e8c971a3f46575eec4::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit0d6fc333f230d1e8c971a3f46575eec4::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
@ -2053,12 +2053,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
|
||||
"reference": "4da8189689534d36db410ba7323b5ec1e04318b7"
|
||||
"reference": "e309ec20f0b527368ed66557b34aec8615502ed1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/4da8189689534d36db410ba7323b5ec1e04318b7",
|
||||
"reference": "4da8189689534d36db410ba7323b5ec1e04318b7",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/e309ec20f0b527368ed66557b34aec8615502ed1",
|
||||
"reference": "e309ec20f0b527368ed66557b34aec8615502ed1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -2084,7 +2084,7 @@
|
|||
"symplify\/rule-doc-generator": "^11.1",
|
||||
"symplify\/vendor-patches": "^11.1"
|
||||
},
|
||||
"time": "2022-12-14T10:05:27+00:00",
|
||||
"time": "2022-12-17T14:34:43+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
|||
*/
|
||||
final class GeneratedConfig
|
||||
{
|
||||
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 0a8e8d9'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b1ca6d7'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9ea5f62'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 4da8189'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 8242133'));
|
||||
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 0a8e8d9'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b1ca6d7'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9ea5f62'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e309ec2'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 8242133'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -112,14 +112,16 @@ CODE_SAMPLE
|
|||
$originalAttributeValue = $desiredTagValueNode->value->value;
|
||||
// process depends other ClassMethod
|
||||
$attributeValue = $this->resolveDependsClassMethod($currentClass, $currentMethodName, $originalAttributeValue);
|
||||
$attributeName = 'PHPUnit\\Framework\\Attributes\\Depends';
|
||||
if (!\is_string($attributeValue)) {
|
||||
// other: depends other Class_
|
||||
$attributeValue = $this->resolveDependsClass($originalAttributeValue);
|
||||
$attributeName = 'PHPUnit\\Framework\\Attributes\\DependsOnClass';
|
||||
}
|
||||
if (!\is_string($attributeValue)) {
|
||||
continue;
|
||||
}
|
||||
$attributeGroup = $this->phpAttributeGroupFactory->createFromClassWithItems('PHPUnit\\Framework\\Attributes\\Depends', [$attributeValue]);
|
||||
$attributeGroup = $this->phpAttributeGroupFactory->createFromClassWithItems($attributeName, [$attributeValue]);
|
||||
$node->attrGroups[] = $attributeGroup;
|
||||
// cleanup
|
||||
$this->phpDocTagRemover->removeTagValueFromNode($phpDocInfo, $desiredTagValueNode);
|
||||
|
|
Loading…
Reference in New Issue