mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 2acce0ab9b
2acce0ab9b
Minimal Docker runtime (#998)
This commit is contained in:
parent
aa1201976c
commit
a05bb3b8ac
|
@ -2,7 +2,20 @@
|
|||
|
||||
Contributions here are more than welcomed! You can contribute to [rector-src](https://github.com/rectorphp/rector-src) repository.
|
||||
|
||||
There 3 rules will highly increase changes to get your PR merged:
|
||||
### 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.
|
||||
|
||||
### Preparing Pull Request
|
||||
|
||||
There 3 rules will highly increase chance to get your PR merged:
|
||||
|
||||
- **1 feature per pull-request**
|
||||
- **new features need tests**
|
||||
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'f5c1f19b54fb00d1f6d41ef385f8beed5a0b9eda';
|
||||
public const PACKAGE_VERSION = '2acce0ab9bca8ec596cece5f8c3d5e640d9e7d73';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-10-13 18:58:43';
|
||||
public const RELEASE_DATE = '2021-10-13 14:54:13';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20211013\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe::getLoader();
|
||||
return ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c::getLoader();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe
|
||||
class ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', '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\ComposerStaticInit1050ae575de5f914c67fefc815f49fbe::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,19 +42,19 @@ class ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit1050ae575de5f914c67fefc815f49fbe::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire1050ae575de5f914c67fefc815f49fbe($fileIdentifier, $file);
|
||||
composerRequirea76680634bd2866f25d23b7d63e09f1c($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire1050ae575de5f914c67fefc815f49fbe($fileIdentifier, $file)
|
||||
function composerRequirea76680634bd2866f25d23b7d63e09f1c($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit1050ae575de5f914c67fefc815f49fbe
|
||||
class ComposerStaticInita76680634bd2866f25d23b7d63e09f1c
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
|
@ -3891,9 +3891,9 @@ class ComposerStaticInit1050ae575de5f914c67fefc815f49fbe
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1050ae575de5f914c67fefc815f49fbe::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1050ae575de5f914c67fefc815f49fbe::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1050ae575de5f914c67fefc815f49fbe::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInita76680634bd2866f25d23b7d63e09f1c::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
@ -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('ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe', false) && !interface_exists('ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe', false) && !trait_exists('ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe', false)) {
|
||||
spl_autoload_call('RectorPrefix20211013\ComposerAutoloaderInit1050ae575de5f914c67fefc815f49fbe');
|
||||
if (!class_exists('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', false) && !interface_exists('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', false) && !trait_exists('ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c', false)) {
|
||||
spl_autoload_call('RectorPrefix20211013\ComposerAutoloaderInita76680634bd2866f25d23b7d63e09f1c');
|
||||
}
|
||||
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('composerRequire1050ae575de5f914c67fefc815f49fbe')) {
|
||||
function composerRequire1050ae575de5f914c67fefc815f49fbe() {
|
||||
return \RectorPrefix20211013\composerRequire1050ae575de5f914c67fefc815f49fbe(...func_get_args());
|
||||
if (!function_exists('composerRequirea76680634bd2866f25d23b7d63e09f1c')) {
|
||||
function composerRequirea76680634bd2866f25d23b7d63e09f1c() {
|
||||
return \RectorPrefix20211013\composerRequirea76680634bd2866f25d23b7d63e09f1c(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
|
Loading…
Reference in New Issue