Updated Rector to commit 1dc80df98d

1dc80df98d MD tuning
This commit is contained in:
Tomas Votruba 2021-10-13 13:11:14 +00:00
parent a05bb3b8ac
commit 8f40351e7d
6 changed files with 31 additions and 24 deletions

View File

@ -1,19 +1,26 @@
## How to Contribute
# How to Contribute
Contributions here are more than welcomed! You can contribute to [rector-src](https://github.com/rectorphp/rector-src) repository.
### Preparing Local Environment
## Preparing Local Environment
If you have PHP 8 and Composer installed locally you can use it straight away. You can validate your environment with:
```bash
composer check-platform-reqs
```
Alternatively you can use Docker runtime. All you need to do is wrap every command with `docker-compose run php`, so commands will be executed inside Docker container.
For example `docker-compose run php composer install` will download PHP dependencies, so you can start using all scripts and work with the code.
For example, to download PHP dependencies:
### Preparing Pull Request
```bash
docker-compose run php composer install
```
Now you can start using all scripts and work with the code.
## Preparing Pull Request
There 3 rules will highly increase chance to get your PR merged:
@ -31,4 +38,4 @@ There 3 rules will highly increase chance to get your PR merged:
composer fix-cs
```
We would be happy to accept PRs that follow these guidelines.
We would be happy to accept PRs that follow these guidelines.

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '2acce0ab9bca8ec596cece5f8c3d5e640d9e7d73';
public const PACKAGE_VERSION = '1dc80df98da33e517f6be62f2b301546cbfc5481';
/**
* @var string
*/
public const RELEASE_DATE = '2021-10-13 14:54:13';
public const RELEASE_DATE = '2021-10-13 14:55:38';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20211013\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c::getLoader();
return ComposerAutoloaderInit983cf7060d546349343c1b87d331b065::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c
class ComposerAutoloaderInit983cf7060d546349343c1b87d331b065
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit983cf7060d546349343c1b87d331b065', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit983cf7060d546349343c1b87d331b065', '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\ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit983cf7060d546349343c1b87d331b065::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,19 +42,19 @@ class ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit983cf7060d546349343c1b87d331b065::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequirea76680634bd2866f25d23b7d63e09f1c($fileIdentifier, $file);
composerRequire983cf7060d546349343c1b87d331b065($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequirea76680634bd2866f25d23b7d63e09f1c($fileIdentifier, $file)
function composerRequire983cf7060d546349343c1b87d331b065($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInita76680634bd2866f25d23b7d63e09f1c
class ComposerStaticInit983cf7060d546349343c1b87d331b065
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@ -3891,9 +3891,9 @@ class ComposerStaticInita76680634bd2866f25d23b7d63e09f1c
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit983cf7060d546349343c1b87d331b065::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit983cf7060d546349343c1b87d331b065::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit983cf7060d546349343c1b87d331b065::$classMap;
}, null, ClassLoader::class);
}

View File

@ -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('RectorPrefix20211013\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', false) && !interface_exists('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', false) && !trait_exists('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', false)) {
spl_autoload_call('RectorPrefix20211013\ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c');
if (!class_exists('ComposerAutoloaderInit983cf7060d546349343c1b87d331b065', false) && !interface_exists('ComposerAutoloaderInit983cf7060d546349343c1b87d331b065', false) && !trait_exists('ComposerAutoloaderInit983cf7060d546349343c1b87d331b065', false)) {
spl_autoload_call('RectorPrefix20211013\ComposerAutoloaderInit983cf7060d546349343c1b87d331b065');
}
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('RectorPrefix20211013\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -3306,9 +3306,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20211013\print_node(...func_get_args());
}
}
if (!function_exists('composerRequirea76680634bd2866f25d23b7d63e09f1c')) {
function composerRequirea76680634bd2866f25d23b7d63e09f1c() {
return \RectorPrefix20211013\composerRequirea76680634bd2866f25d23b7d63e09f1c(...func_get_args());
if (!function_exists('composerRequire983cf7060d546349343c1b87d331b065')) {
function composerRequire983cf7060d546349343c1b87d331b065() {
return \RectorPrefix20211013\composerRequire983cf7060d546349343c1b87d331b065(...func_get_args());
}
}
if (!function_exists('parseArgs')) {