Updated Rector to commit 3a15da7e8418045eea79697271a91a0d1ddf035f

3a15da7e84 typo
This commit is contained in:
Tomas Votruba 2023-08-18 12:43:06 +00:00
parent 8c53c7470b
commit 518a2bb0b1
5 changed files with 18 additions and 15 deletions

View File

@ -9,6 +9,7 @@ use Rector\Core\Configuration\Option;
use Rector\Core\Configuration\Parameter\SimpleParameterProvider;
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
use Rector\Core\Contract\Rector\NonPhpRectorInterface;
use Rector\Core\Contract\Rector\PhpRectorInterface;
use Rector\Core\Contract\Rector\RectorInterface;
use Rector\Core\Exception\ShouldNotHappenException;
use Rector\Core\NodeAnalyzer\ScopeAnalyzer;
@ -277,13 +278,15 @@ final class RectorConfig extends Container
return \array_unique($duplicates);
}
/**
* @param class-string<RectorInterface> $rectorClass
* @param class-string<RectorInterface|PhpRectorInterface> $rectorClass
*/
private function tagRectorService(string $rectorClass) : void
{
$this->tag($rectorClass, RectorInterface::class);
if (\is_a($rectorClass, NonPhpRectorInterface::class, \true)) {
\trigger_error(\sprintf('The "%s" interface of "%s" rule is deprecated. Rector will only PHP code, as designed to with AST. For another file format, use custom tooling.', NonPhpRectorInterface::class, $rectorClass));
if (\is_a($rectorClass, PhpRectorInterface::class, \true)) {
$this->tag($rectorClass, PhpRectorInterface::class);
} elseif (\is_a($rectorClass, NonPhpRectorInterface::class, \true)) {
\trigger_error(\sprintf('The "%s" interface of "%s" rule is deprecated. Rector will process only PHP code, as designed to with AST. For another file format, use custom tooling.', NonPhpRectorInterface::class, $rectorClass));
exit;
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '216108b6d9e24cf4f3f829fe5a67133c8564d23d';
public const PACKAGE_VERSION = '3a15da7e8418045eea79697271a91a0d1ddf035f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-08-18 14:24:38';
public const RELEASE_DATE = '2023-08-18 14:39:32';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit60b57168041c172ab612e033f04a1177
class ComposerAutoloaderInit0acc5f5f8f62849e5aed103d01d9f715
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit60b57168041c172ab612e033f04a1177
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit60b57168041c172ab612e033f04a1177', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit0acc5f5f8f62849e5aed103d01d9f715', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit60b57168041c172ab612e033f04a1177', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit0acc5f5f8f62849e5aed103d01d9f715', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit60b57168041c172ab612e033f04a1177::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit0acc5f5f8f62849e5aed103d01d9f715::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit60b57168041c172ab612e033f04a1177::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit0acc5f5f8f62849e5aed103d01d9f715::$files;
$requireFile = \Closure::bind(static function ($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 ComposerStaticInit60b57168041c172ab612e033f04a1177
class ComposerStaticInit0acc5f5f8f62849e5aed103d01d9f715
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2638,9 +2638,9 @@ class ComposerStaticInit60b57168041c172ab612e033f04a1177
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit60b57168041c172ab612e033f04a1177::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit60b57168041c172ab612e033f04a1177::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit60b57168041c172ab612e033f04a1177::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit0acc5f5f8f62849e5aed103d01d9f715::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit0acc5f5f8f62849e5aed103d01d9f715::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit0acc5f5f8f62849e5aed103d01d9f715::$classMap;
}, null, ClassLoader::class);
}