Updated Rector to commit 74bb7a0a7153e3b4423dd816da23c5de55875fc2

74bb7a0a71 Remove deprecated TYPE_DECLARATION_SET (#3352)
This commit is contained in:
Tomas Votruba 2023-02-07 00:42:51 +00:00
parent baf4489760
commit 5cc4e62142
11 changed files with 29 additions and 61 deletions

View File

@ -1,11 +0,0 @@
<?php
declare (strict_types=1);
namespace RectorPrefix202302;
use Rector\Config\RectorConfig;
// deprecated, use type-declaration config instead
return static function (RectorConfig $rectorConfig) : void {
\trigger_error('The TYPE_DECLARATION_STRICT is deprecated, use TYPE_DECLARATION instead that include this rules.');
\sleep(3);
};

View File

@ -101,11 +101,6 @@ final class SetList implements SetListInterface
* @var string
*/
public const TYPE_DECLARATION = __DIR__ . '/../../../config/set/type-declaration.php';
/**
* @deprecated Use only TYPE_DECLARATION instead
* @var string
*/
public const TYPE_DECLARATION_STRICT = __DIR__ . '/../../../config/set/type-declaration-strict.php';
/**
* @var string
*/

View File

@ -15,20 +15,4 @@ final class PreferenceSelfThis
* @var string
*/
public const PREFER_SELF = 'prefer_self';
/**
* @api
* @deprecated Use direct constant
*/
public static function PREFER_THIS() : string
{
return self::PREFER_THIS;
}
/**
* @api
* @deprecated Use direct constant
*/
public static function PREFER_SELF() : string
{
return self::PREFER_SELF;
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '4ef31e92b88053cf22ca1f379fc92ecc3d45f371';
public const PACKAGE_VERSION = '74bb7a0a7153e3b4423dd816da23c5de55875fc2';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-02-06 19:24:14';
public const RELEASE_DATE = '2023-02-07 00:37:45';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit9fea5958f2b1662b9650f5dfbb2db631::getLoader();
return ComposerAutoloaderInit36cb3b9d8499b09a857da3f0cb0c4384::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit9fea5958f2b1662b9650f5dfbb2db631
class ComposerAutoloaderInit36cb3b9d8499b09a857da3f0cb0c4384
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit9fea5958f2b1662b9650f5dfbb2db631
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit9fea5958f2b1662b9650f5dfbb2db631', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit36cb3b9d8499b09a857da3f0cb0c4384', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit9fea5958f2b1662b9650f5dfbb2db631', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit36cb3b9d8499b09a857da3f0cb0c4384', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit9fea5958f2b1662b9650f5dfbb2db631::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit36cb3b9d8499b09a857da3f0cb0c4384::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit9fea5958f2b1662b9650f5dfbb2db631::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit36cb3b9d8499b09a857da3f0cb0c4384::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit9fea5958f2b1662b9650f5dfbb2db631
class ComposerStaticInit36cb3b9d8499b09a857da3f0cb0c4384
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3080,9 +3080,9 @@ class ComposerStaticInit9fea5958f2b1662b9650f5dfbb2db631
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit9fea5958f2b1662b9650f5dfbb2db631::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit9fea5958f2b1662b9650f5dfbb2db631::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit9fea5958f2b1662b9650f5dfbb2db631::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit36cb3b9d8499b09a857da3f0cb0c4384::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit36cb3b9d8499b09a857da3f0cb0c4384::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit36cb3b9d8499b09a857da3f0cb0c4384::$classMap;
}, null, ClassLoader::class);
}

View File

@ -2131,12 +2131,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "cd25b6a2f5bb116c65ef7395f5d0e416b2498423"
"reference": "948357fafe6f490315216a21b1dd3d02d49a66d1"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/cd25b6a2f5bb116c65ef7395f5d0e416b2498423",
"reference": "cd25b6a2f5bb116c65ef7395f5d0e416b2498423",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/948357fafe6f490315216a21b1dd3d02d49a66d1",
"reference": "948357fafe6f490315216a21b1dd3d02d49a66d1",
"shasum": ""
},
"require": {
@ -2154,20 +2154,20 @@
"rector\/rector-generator": "^0.6",
"rector\/rector-src": "dev-main",
"symfony\/routing": "^6.1",
"symfony\/security-core": "^6.1",
"symfony\/security-core": "^6.2",
"symfony\/security-http": "^6.1",
"symplify\/easy-ci": "^11.1",
"symplify\/easy-coding-standard": "^11.2",
"symplify\/monorepo-builder": "^11.1",
"symplify\/monorepo-builder": "^11.2",
"symplify\/phpstan-extensions": "^11.1",
"symplify\/phpstan-rules": "^11.1",
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1",
"symplify\/phpstan-rules": "^11.2",
"symplify\/rule-doc-generator": "^11.2",
"symplify\/vendor-patches": "^11.2",
"tomasvotruba\/cognitive-complexity": "^0.0.5",
"tomasvotruba\/type-coverage": "^0.0.9",
"tomasvotruba\/unused-public": "^0.0.34"
},
"time": "2023-02-06T12:52:12+00:00",
"time": "2023-02-06T23:56:14+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -2191,7 +2191,7 @@
"description": "Rector upgrades rules for Symfony Framework",
"support": {
"issues": "https:\/\/github.com\/rectorphp\/rector-symfony\/issues",
"source": "https:\/\/github.com\/rectorphp\/rector-symfony\/tree\/0.14.3"
"source": "https:\/\/github.com\/rectorphp\/rector-symfony\/tree\/main"
},
"install-path": "..\/rector\/rector-symfony"
},

File diff suppressed because one or more lines are too long

View File

@ -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 ea9cf46'), '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 46346e2'), '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 9639ef9'), '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 dcfdf20'), '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 cd25b6a'));
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 ea9cf46'), '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 46346e2'), '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 9639ef9'), '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 dcfdf20'), '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 948357f'));
private function __construct()
{
}

View File

@ -18,15 +18,15 @@
"rector\/rector-generator": "^0.6",
"rector\/rector-src": "dev-main",
"symfony\/routing": "^6.1",
"symfony\/security-core": "^6.1",
"symfony\/security-core": "^6.2",
"symfony\/security-http": "^6.1",
"symplify\/easy-ci": "^11.1",
"symplify\/easy-coding-standard": "^11.2",
"symplify\/monorepo-builder": "^11.1",
"symplify\/monorepo-builder": "^11.2",
"symplify\/phpstan-extensions": "^11.1",
"symplify\/phpstan-rules": "^11.1",
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1",
"symplify\/phpstan-rules": "^11.2",
"symplify\/rule-doc-generator": "^11.2",
"symplify\/vendor-patches": "^11.2",
"tomasvotruba\/cognitive-complexity": "^0.0.5",
"tomasvotruba\/type-coverage": "^0.0.9",
"tomasvotruba\/unused-public": "^0.0.34"