Skip to content

Commit

Permalink
Rector 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed May 23, 2022
1 parent f89782b commit bb3b32d
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = 'f134b6183e8c1a9cef0d69cb3255015c963d3c19';
public const PACKAGE_VERSION = '0.13.0';
/**
* @var string
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit290635ae150c45396ed04150750f4720::getLoader();
return ComposerAutoloaderInit744d3d7732087d9ef2ebd27c38ce378a::getLoader();
14 changes: 7 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit290635ae150c45396ed04150750f4720
class ComposerAutoloaderInit744d3d7732087d9ef2ebd27c38ce378a
{
private static $loader;

Expand All @@ -22,19 +22,19 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit290635ae150c45396ed04150750f4720', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit744d3d7732087d9ef2ebd27c38ce378a', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit290635ae150c45396ed04150750f4720', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit744d3d7732087d9ef2ebd27c38ce378a', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit290635ae150c45396ed04150750f4720::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit744d3d7732087d9ef2ebd27c38ce378a::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$includeFiles = \Composer\Autoload\ComposerStaticInit290635ae150c45396ed04150750f4720::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit744d3d7732087d9ef2ebd27c38ce378a::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire290635ae150c45396ed04150750f4720($fileIdentifier, $file);
composerRequire744d3d7732087d9ef2ebd27c38ce378a($fileIdentifier, $file);
}

return $loader;
Expand All @@ -46,7 +46,7 @@ public static function getLoader()
* @param string $file
* @return void
*/
function composerRequire290635ae150c45396ed04150750f4720($fileIdentifier, $file)
function composerRequire744d3d7732087d9ef2ebd27c38ce378a($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit290635ae150c45396ed04150750f4720
class ComposerStaticInit744d3d7732087d9ef2ebd27c38ce378a
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
Expand Down Expand Up @@ -3909,9 +3909,9 @@ class ComposerStaticInit290635ae150c45396ed04150750f4720
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit290635ae150c45396ed04150750f4720::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit290635ae150c45396ed04150750f4720::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit290635ae150c45396ed04150750f4720::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit744d3d7732087d9ef2ebd27c38ce378a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit744d3d7732087d9ef2ebd27c38ce378a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit744d3d7732087d9ef2ebd27c38ce378a::$classMap;

}, null, ClassLoader::class);
}
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2644,12 +2644,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "f6c3a514f6393f29c96b97d96d8733bc94c9917e"
"reference": "6e0ca50422e01b8f20df1de439067012a55da0a3"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/f6c3a514f6393f29c96b97d96d8733bc94c9917e",
"reference": "f6c3a514f6393f29c96b97d96d8733bc94c9917e",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/6e0ca50422e01b8f20df1de439067012a55da0a3",
"reference": "6e0ca50422e01b8f20df1de439067012a55da0a3",
"shasum": ""
},
"require": {
Expand Down Expand Up @@ -2679,7 +2679,7 @@
"symplify\/rule-doc-generator": "^10.2",
"symplify\/vendor-patches": "^10.2"
},
"time": "2022-05-22T12:38:13+00:00",
"time": "2022-05-23T09:06:17+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/rector/extension-installer/src/GeneratedConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 43ca394'), '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 4a907ed'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 784271e'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 2e0f600'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5f84d90'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e544f2a'), '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 5a33940'), '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 f6c3a51'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e34d2fb'));
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 43ca394'), '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 4a907ed'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 784271e'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 2e0f600'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5f84d90'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e544f2a'), '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 5a33940'), '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 6e0ca50'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e34d2fb'));
private function __construct()
{
}
Expand Down
4 changes: 4 additions & 0 deletions vendor/rector/rector-symfony/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ return static function (RectorConfig $rectorConfig): void {

## Configuration

### Provide Symfony XML Service List

Some rules like `StringFormTypeToClassRector` need access to your Symfony container dumped XML. It contains list of form types with their string names, so it can convert them to class references.

How to add it? Check your `/var/cache` directory and find the XML file for your test env. Then add it in `rector.php`:
Expand All @@ -51,6 +53,8 @@ That's it! Now you can run the `StringFormTypeToClassRector` and get your form c

---

### Provide Symfony PHP Container

Some rules like `AddRouteAnnotationRector` require additional access to your Symfony container. The rule takes container service "router" to load metadata about your routes.

```php
Expand Down
10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20220523\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInit290635ae150c45396ed04150750f4720', false) && !interface_exists('ComposerAutoloaderInit290635ae150c45396ed04150750f4720', false) && !trait_exists('ComposerAutoloaderInit290635ae150c45396ed04150750f4720', false)) {
spl_autoload_call('RectorPrefix20220523\ComposerAutoloaderInit290635ae150c45396ed04150750f4720');
if (!class_exists('ComposerAutoloaderInit744d3d7732087d9ef2ebd27c38ce378a', false) && !interface_exists('ComposerAutoloaderInit744d3d7732087d9ef2ebd27c38ce378a', false) && !trait_exists('ComposerAutoloaderInit744d3d7732087d9ef2ebd27c38ce378a', false)) {
spl_autoload_call('RectorPrefix20220523\ComposerAutoloaderInit744d3d7732087d9ef2ebd27c38ce378a');
}
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('RectorPrefix20220523\Helmich\TypoScriptParser\Parser\AST\Statement');
Expand Down Expand Up @@ -59,9 +59,9 @@ function print_node() {
return \RectorPrefix20220523\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire290635ae150c45396ed04150750f4720')) {
function composerRequire290635ae150c45396ed04150750f4720() {
return \RectorPrefix20220523\composerRequire290635ae150c45396ed04150750f4720(...func_get_args());
if (!function_exists('composerRequire744d3d7732087d9ef2ebd27c38ce378a')) {
function composerRequire744d3d7732087d9ef2ebd27c38ce378a() {
return \RectorPrefix20220523\composerRequire744d3d7732087d9ef2ebd27c38ce378a(...func_get_args());
}
}
if (!function_exists('scanPath')) {
Expand Down

0 comments on commit bb3b32d

Please sign in to comment.