Skip to content

Commit

Permalink
Updated Rector to commit 8c31c3a
Browse files Browse the repository at this point in the history
rectorphp/rector-src@8c31c3a Add BOOTSTRAP_FILES hint to AutoloadExceptionMessage (#1236)
  • Loading branch information
TomasVotruba committed Nov 14, 2021
1 parent da6b06e commit f1626ba
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = 'aebfb399f99a2f42590d200c332815cbb9bd3f6e';
public const PACKAGE_VERSION = '8c31c3a6b99b32054f5b9baa5d2eeedd44c2f22a';
/**
* @var string
*/
public const RELEASE_DATE = '2021-11-14 15:05:05';
public const RELEASE_DATE = '2021-11-14 21:23:55';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20211114\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
Expand Down
2 changes: 1 addition & 1 deletion src/Error/ExceptionCorrector.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public function matchRectorClass(\Throwable $throwable) : ?string
}
public function getAutoloadExceptionMessageAndAddLocation(\PHPStan\AnalysedCodeException $analysedCodeException) : string
{
return \sprintf('Analyze error: "%s". Include your files in "$parameters->set(Option::AUTOLOAD_PATHS, [...]);" in "rector.php" config.%sSee https://github.com/rectorphp/rector#configuration', $analysedCodeException->getMessage(), \PHP_EOL);
return \sprintf('Analyze error: "%s". Include your files in "$parameters->set(Option::AUTOLOAD_PATHS, [...]);" or "$parameters->set(Option::BOOTSTRAP_FILES, [...]);" in "rector.php" config.%sSee https://github.com/rectorphp/rector#configuration', $analysedCodeException->getMessage(), \PHP_EOL);
}
}
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

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

return ComposerAutoloaderInitea3e99ca14270ab714943fb1e0cb46f0::getLoader();
return ComposerAutoloaderInitfc867dcd582864bda07cae356b6f3867::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 ComposerAutoloaderInitea3e99ca14270ab714943fb1e0cb46f0
class ComposerAutoloaderInitfc867dcd582864bda07cae356b6f3867
{
private static $loader;

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

spl_autoload_register(array('ComposerAutoloaderInitea3e99ca14270ab714943fb1e0cb46f0', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitfc867dcd582864bda07cae356b6f3867', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInitea3e99ca14270ab714943fb1e0cb46f0', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitfc867dcd582864bda07cae356b6f3867', '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\ComposerStaticInitea3e99ca14270ab714943fb1e0cb46f0::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitfc867dcd582864bda07cae356b6f3867::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
Expand All @@ -42,19 +42,19 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitea3e99ca14270ab714943fb1e0cb46f0::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitfc867dcd582864bda07cae356b6f3867::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequireea3e99ca14270ab714943fb1e0cb46f0($fileIdentifier, $file);
composerRequirefc867dcd582864bda07cae356b6f3867($fileIdentifier, $file);
}

return $loader;
}
}

function composerRequireea3e99ca14270ab714943fb1e0cb46f0($fileIdentifier, $file)
function composerRequirefc867dcd582864bda07cae356b6f3867($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
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 ComposerStaticInitea3e99ca14270ab714943fb1e0cb46f0
class ComposerStaticInitfc867dcd582864bda07cae356b6f3867
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
Expand Down Expand Up @@ -3545,9 +3545,9 @@ class ComposerStaticInitea3e99ca14270ab714943fb1e0cb46f0
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitea3e99ca14270ab714943fb1e0cb46f0::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitea3e99ca14270ab714943fb1e0cb46f0::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitea3e99ca14270ab714943fb1e0cb46f0::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitfc867dcd582864bda07cae356b6f3867::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitfc867dcd582864bda07cae356b6f3867::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitfc867dcd582864bda07cae356b6f3867::$classMap;

}, null, ClassLoader::class);
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20211114\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInitea3e99ca14270ab714943fb1e0cb46f0', false) && !interface_exists('ComposerAutoloaderInitea3e99ca14270ab714943fb1e0cb46f0', false) && !trait_exists('ComposerAutoloaderInitea3e99ca14270ab714943fb1e0cb46f0', false)) {
spl_autoload_call('RectorPrefix20211114\ComposerAutoloaderInitea3e99ca14270ab714943fb1e0cb46f0');
if (!class_exists('ComposerAutoloaderInitfc867dcd582864bda07cae356b6f3867', false) && !interface_exists('ComposerAutoloaderInitfc867dcd582864bda07cae356b6f3867', false) && !trait_exists('ComposerAutoloaderInitfc867dcd582864bda07cae356b6f3867', false)) {
spl_autoload_call('RectorPrefix20211114\ComposerAutoloaderInitfc867dcd582864bda07cae356b6f3867');
}
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('RectorPrefix20211114\Helmich\TypoScriptParser\Parser\AST\Statement');
Expand Down Expand Up @@ -3309,9 +3309,9 @@ function print_node() {
return \RectorPrefix20211114\print_node(...func_get_args());
}
}
if (!function_exists('composerRequireea3e99ca14270ab714943fb1e0cb46f0')) {
function composerRequireea3e99ca14270ab714943fb1e0cb46f0() {
return \RectorPrefix20211114\composerRequireea3e99ca14270ab714943fb1e0cb46f0(...func_get_args());
if (!function_exists('composerRequirefc867dcd582864bda07cae356b6f3867')) {
function composerRequirefc867dcd582864bda07cae356b6f3867() {
return \RectorPrefix20211114\composerRequirefc867dcd582864bda07cae356b6f3867(...func_get_args());
}
}
if (!function_exists('parseArgs')) {
Expand Down

0 comments on commit f1626ba

Please sign in to comment.