Updated Rector to commit 76ee84cedfe4dedd612ee3c478d9ece4191a01cb

76ee84cedf CI-docs: Apply TitleCase Consistently, add to Root README, Test link lower as well (#2907)
This commit is contained in:
Tomas Votruba 2022-09-04 19:04:24 +00:00
parent 55915c3dea
commit 429fb126bc
6 changed files with 18 additions and 17 deletions

View File

@ -43,11 +43,12 @@ By [buying a book](https://leanpub.com/rector-the-power-of-automated-refactoring
### For Rule Developers and Contributors
- [How to add Test for Rector Rule](/docs/how_to_add_test_for_rector_rule.md)
- [How Does Rector Work?](/docs/how_it_works.md)
- [PHP Parser Nodes](https://github.com/rectorphp/php-parser-nodes-docs/)
- [How to Work with Doc Block and Comments](/docs/how_to_work_with_doc_block_and_comments.md)
- [How to Create Own Rector Rule](/docs/create_own_rule.md)
- [How to add Test for Rector Rule](/docs/how_to_add_test_for_rector_rule.md)
- [How to Persist Cache Between CI Runs](/docs/how_to_persist_cache_between_ci_runs.md)
See [the full documentation](/docs).

View File

@ -1,4 +1,4 @@
# How To Persist Cache Between CI Runs
# How to Persist Cache Between CI Runs
While parsing your application code, Rector generates objects representing that code. It caches these objects for later reuse, so it doesn't have to parse the entire application again, by detecting which files have changed since the last Rector run.
When running Rector in a Continuous Integration (CI) system such as [GitHub Actions](https://github.com/features/actions), the default implementation [uses an in-memory cache](https://github.com/rectorphp/rector/blob/1d28ca109ca536e8034c3c756ee61c65e6e63c8a/config/config.php#L89-L94). This means the next job that runs, will have to parse all code from scratch.
@ -19,7 +19,7 @@ return static function (RectorConfig $rectorConfig): void {
Note that this caches relative to the repository directory, so it's the same directory on build as on development (and other environments). The actual path, when not specified, may vary per (runner) OS.
## Debugging the cache locally
## Debugging the Cache Locally
Generate the cache on your development machine, by running the command:
```bash
vendor/bin/rector process --dry-run --config=rector.php

View File

@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '0.14.2';
public const PACKAGE_VERSION = '76ee84cedfe4dedd612ee3c478d9ece4191a01cb';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-09-04 17:46:40';
public const RELEASE_DATE = '2022-09-04 20:59:43';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit4d8646a743a5d12907225c6821e1a791
class ComposerAutoloaderInite04cd3b6147b101e0e3375a769ea2815
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInit4d8646a743a5d12907225c6821e1a791
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit4d8646a743a5d12907225c6821e1a791', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInite04cd3b6147b101e0e3375a769ea2815', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit4d8646a743a5d12907225c6821e1a791', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInite04cd3b6147b101e0e3375a769ea2815', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit4d8646a743a5d12907225c6821e1a791::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInite04cd3b6147b101e0e3375a769ea2815::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInit4d8646a743a5d12907225c6821e1a791::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInite04cd3b6147b101e0e3375a769ea2815::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire4d8646a743a5d12907225c6821e1a791($fileIdentifier, $file);
composerRequiree04cd3b6147b101e0e3375a769ea2815($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInit4d8646a743a5d12907225c6821e1a791
* @param string $file
* @return void
*/
function composerRequire4d8646a743a5d12907225c6821e1a791($fileIdentifier, $file)
function composerRequiree04cd3b6147b101e0e3375a769ea2815($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 ComposerStaticInit4d8646a743a5d12907225c6821e1a791
class ComposerStaticInite04cd3b6147b101e0e3375a769ea2815
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3093,9 +3093,9 @@ class ComposerStaticInit4d8646a743a5d12907225c6821e1a791
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit4d8646a743a5d12907225c6821e1a791::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit4d8646a743a5d12907225c6821e1a791::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit4d8646a743a5d12907225c6821e1a791::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInite04cd3b6147b101e0e3375a769ea2815::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite04cd3b6147b101e0e3375a769ea2815::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite04cd3b6147b101e0e3375a769ea2815::$classMap;
}, null, ClassLoader::class);
}