Updated Rector to commit 2be5a4d4928468b981079704bd0946764a6a1ec3

2be5a4d492 Simplify AlwaysStrictScalarExprAnalyzer (#4935)
This commit is contained in:
Tomas Votruba 2023-09-07 13:52:32 +00:00
parent 306ecbf7e3
commit 06e012f8b4
7 changed files with 22 additions and 16 deletions

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit44c10b861bf9384822c8ce7d57d08603
class ComposerAutoloaderInit640139a2249c0d3a7e34e9ba91eae6ce
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit44c10b861bf9384822c8ce7d57d08603
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit44c10b861bf9384822c8ce7d57d08603', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit640139a2249c0d3a7e34e9ba91eae6ce', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit44c10b861bf9384822c8ce7d57d08603', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit640139a2249c0d3a7e34e9ba91eae6ce', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit44c10b861bf9384822c8ce7d57d08603::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit640139a2249c0d3a7e34e9ba91eae6ce::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit44c10b861bf9384822c8ce7d57d08603::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit640139a2249c0d3a7e34e9ba91eae6ce::$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 ComposerStaticInit44c10b861bf9384822c8ce7d57d08603
class ComposerStaticInit640139a2249c0d3a7e34e9ba91eae6ce
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2603,9 +2603,9 @@ class ComposerStaticInit44c10b861bf9384822c8ce7d57d08603
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit44c10b861bf9384822c8ce7d57d08603::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit44c10b861bf9384822c8ce7d57d08603::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit44c10b861bf9384822c8ce7d57d08603::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit640139a2249c0d3a7e34e9ba91eae6ce::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit640139a2249c0d3a7e34e9ba91eae6ce::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit640139a2249c0d3a7e34e9ba91eae6ce::$classMap;
}, null, ClassLoader::class);
}

View File

@ -1958,12 +1958,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "3c900cb6dee9eb8f3a32ae9620c5c0f8985f6744"
"reference": "c2f94f699726a1039f432b8e50b272b5904e2270"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/3c900cb6dee9eb8f3a32ae9620c5c0f8985f6744",
"reference": "3c900cb6dee9eb8f3a32ae9620c5c0f8985f6744",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/c2f94f699726a1039f432b8e50b272b5904e2270",
"reference": "c2f94f699726a1039f432b8e50b272b5904e2270",
"shasum": ""
},
"require": {
@ -1996,7 +1996,7 @@
"tomasvotruba\/unused-public": "^0.2",
"tracy\/tracy": "^2.10"
},
"time": "2023-09-07T13:23:40+00:00",
"time": "2023-09-07T13:48:11+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

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 b5eea3f'), '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 51a2650'), '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 0810d7c'), '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 3c900cb'));
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 b5eea3f'), '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 51a2650'), '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 0810d7c'), '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 c2f94f6'));
private function __construct()
{
}

View File

@ -60,8 +60,14 @@ Some rules like `AddRouteAnnotationRector` require additional access to your Sym
```php
use Rector\Config\RectorConfig;
use Rector\Symfony\Configs\Rector\ClassMethod\AddRouteAnnotationRector;
use Rector\Symfony\Contract\Bridge\Symfony\Routing\SymfonyRoutesProviderInterface;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->symfonyContainerPhp(__DIR__ . '/tests/symfony-container.php');
$rectorConfig->singleton(SymfonyRoutesProvider::class);
$rectorConfig->alias(SymfonyRoutesProvider::class, SymfonyRoutesProviderInterface::class);
};
```