mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit adb6e68c2a2c407961ee6cb69ed0ae79112e5c27
adb6e68c2a
[automated] Re-Generate Nodes/Rectors Documentation (#2343)
This commit is contained in:
parent
1eaab8962d
commit
2b85976c4c
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
require_once __DIR__ . '/rector.php';
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use RectorPrefix20220521\Nette\Utils\Json;
|
||||
use RectorPrefix20220522\Nette\Utils\Json;
|
||||
use Rector\ChangesReporting\Output\JsonOutputFormatter;
|
||||
use Rector\Core\Bootstrap\RectorConfigsResolver;
|
||||
use Rector\Core\Configuration\Option;
|
||||
@ -11,9 +11,9 @@ use Rector\Core\Console\ConsoleApplication;
|
||||
use Rector\Core\Console\Style\RectorConsoleOutputStyleFactory;
|
||||
use Rector\Core\DependencyInjection\RectorContainerFactory;
|
||||
use Rector\Core\Kernel\RectorKernel;
|
||||
use RectorPrefix20220521\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix20220521\Symfony\Component\Console\Input\ArgvInput;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
use RectorPrefix20220522\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix20220522\Symfony\Component\Console\Input\ArgvInput;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
// @ intentionally: continue anyway
|
||||
@\ini_set('memory_limit', '-1');
|
||||
// Performance boost
|
||||
@ -22,7 +22,7 @@ use RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
\gc_disable();
|
||||
\define('__RECTOR_RUNNING__', \true);
|
||||
// Require Composer autoload.php
|
||||
$autoloadIncluder = new \RectorPrefix20220521\AutoloadIncluder();
|
||||
$autoloadIncluder = new \RectorPrefix20220522\AutoloadIncluder();
|
||||
$autoloadIncluder->includeDependencyOrRepositoryVendorAutoloadIfExists();
|
||||
final class AutoloadIncluder
|
||||
{
|
||||
@ -95,7 +95,7 @@ final class AutoloadIncluder
|
||||
require_once $filePath;
|
||||
}
|
||||
}
|
||||
\class_alias('RectorPrefix20220521\\AutoloadIncluder', 'AutoloadIncluder', \false);
|
||||
\class_alias('RectorPrefix20220522\\AutoloadIncluder', 'AutoloadIncluder', \false);
|
||||
if (\file_exists(__DIR__ . '/../preload.php') && \is_dir(__DIR__ . '/../vendor')) {
|
||||
require_once __DIR__ . '/../preload.php';
|
||||
}
|
||||
@ -111,18 +111,18 @@ try {
|
||||
$container = $rectorContainerFactory->createFromBootstrapConfigs($bootstrapConfigs);
|
||||
} catch (\Throwable $throwable) {
|
||||
// for json output
|
||||
$argvInput = new \RectorPrefix20220521\Symfony\Component\Console\Input\ArgvInput();
|
||||
$argvInput = new \RectorPrefix20220522\Symfony\Component\Console\Input\ArgvInput();
|
||||
$outputFormat = $argvInput->getParameterOption('--' . \Rector\Core\Configuration\Option::OUTPUT_FORMAT);
|
||||
// report fatal error in json format
|
||||
if ($outputFormat === \Rector\ChangesReporting\Output\JsonOutputFormatter::NAME) {
|
||||
echo \RectorPrefix20220521\Nette\Utils\Json::encode(['fatal_errors' => [$throwable->getMessage()]]);
|
||||
echo \RectorPrefix20220522\Nette\Utils\Json::encode(['fatal_errors' => [$throwable->getMessage()]]);
|
||||
} else {
|
||||
// report fatal errors in console format
|
||||
$rectorConsoleOutputStyleFactory = new \Rector\Core\Console\Style\RectorConsoleOutputStyleFactory(new \RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesCaller());
|
||||
$rectorConsoleOutputStyleFactory = new \Rector\Core\Console\Style\RectorConsoleOutputStyleFactory(new \RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesCaller());
|
||||
$rectorConsoleOutputStyle = $rectorConsoleOutputStyleFactory->create();
|
||||
$rectorConsoleOutputStyle->error($throwable->getMessage());
|
||||
}
|
||||
exit(\RectorPrefix20220521\Symfony\Component\Console\Command\Command::FAILURE);
|
||||
exit(\RectorPrefix20220522\Symfony\Component\Console\Command\Command::FAILURE);
|
||||
}
|
||||
/** @var ConsoleApplication $application */
|
||||
$application = $container->get(\Rector\Core\Console\ConsoleApplication::class);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\Bootstrap\ExtensionConfigResolver;
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use RectorPrefix20220521\OndraM\CiDetector\CiDetector;
|
||||
use RectorPrefix20220522\OndraM\CiDetector\CiDetector;
|
||||
use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\Configuration\Option;
|
||||
@ -30,7 +30,7 @@ return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$parameters->set(\Rector\Core\Configuration\Option::CACHE_DIR, \sys_get_temp_dir() . '/rector_cached_files');
|
||||
// use faster in-memory cache in CI.
|
||||
// CI always starts from scratch, therefore IO intensive caching is not worth it
|
||||
$ciDetector = new \RectorPrefix20220521\OndraM\CiDetector\CiDetector();
|
||||
$ciDetector = new \RectorPrefix20220522\OndraM\CiDetector\CiDetector();
|
||||
if ($ciDetector->isCiDetected()) {
|
||||
$parameters->set(\Rector\Core\Configuration\Option::CACHE_CLASS, \Rector\Caching\ValueObject\Storage\MemoryCacheStorage::class);
|
||||
}
|
||||
|
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use RectorPrefix20220521\Symplify\EasyParallel\ValueObject\EasyParallelConfig;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Yaml\ParametersMerger;
|
||||
use RectorPrefix20220522\Symplify\EasyParallel\ValueObject\EasyParallelConfig;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Yaml\ParametersMerger;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
// make use of https://github.com/symplify/easy-parallel
|
||||
$rectorConfig->import(\RectorPrefix20220521\Symplify\EasyParallel\ValueObject\EasyParallelConfig::FILE_PATH);
|
||||
$rectorConfig->import(\RectorPrefix20220522\Symplify\EasyParallel\ValueObject\EasyParallelConfig::FILE_PATH);
|
||||
$services = $rectorConfig->services();
|
||||
$services->defaults()->public()->autowire()->autoconfigure();
|
||||
$services->load('Rector\\', __DIR__ . '/../packages')->exclude([
|
||||
@ -24,5 +24,5 @@ return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
__DIR__ . '/../packages/NodeTypeResolver/Reflection/BetterReflection/SourceLocatorProvider/DynamicSourceLocatorProvider.php',
|
||||
]);
|
||||
// parallel
|
||||
$services->set(\RectorPrefix20220521\Symplify\PackageBuilder\Yaml\ParametersMerger::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\PackageBuilder\Yaml\ParametersMerger::class);
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\PSR4\Composer\PSR4NamespaceMatcher;
|
||||
|
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use RectorPrefix20220521\Composer\Semver\VersionParser;
|
||||
use RectorPrefix20220521\Doctrine\Inflector\Inflector;
|
||||
use RectorPrefix20220521\Doctrine\Inflector\Rules\English\InflectorFactory;
|
||||
use RectorPrefix20220521\Ergebnis\Json\Printer\Printer;
|
||||
use RectorPrefix20220521\Ergebnis\Json\Printer\PrinterInterface;
|
||||
use RectorPrefix20220521\Idiosyncratic\EditorConfig\EditorConfig;
|
||||
use RectorPrefix20220522\Composer\Semver\VersionParser;
|
||||
use RectorPrefix20220522\Doctrine\Inflector\Inflector;
|
||||
use RectorPrefix20220522\Doctrine\Inflector\Rules\English\InflectorFactory;
|
||||
use RectorPrefix20220522\Ergebnis\Json\Printer\Printer;
|
||||
use RectorPrefix20220522\Ergebnis\Json\Printer\PrinterInterface;
|
||||
use RectorPrefix20220522\Idiosyncratic\EditorConfig\EditorConfig;
|
||||
use PhpParser\BuilderFactory;
|
||||
use PhpParser\Lexer;
|
||||
use PhpParser\NodeFinder;
|
||||
@ -36,67 +36,67 @@ use Rector\Core\Validation\Collector\EmptyConfigurableRectorCollector;
|
||||
use Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory;
|
||||
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator;
|
||||
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider;
|
||||
use RectorPrefix20220521\Symfony\Component\Console\Application;
|
||||
use function RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
||||
use RectorPrefix20220521\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Console\Command\CommandNaming;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Php\TypeChecker;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Strings\StringFormatConverter;
|
||||
use RectorPrefix20220521\Symplify\SmartFileSystem\FileSystemFilter;
|
||||
use RectorPrefix20220521\Symplify\SmartFileSystem\FileSystemGuard;
|
||||
use RectorPrefix20220521\Symplify\SmartFileSystem\Finder\FinderSanitizer;
|
||||
use RectorPrefix20220521\Symplify\SmartFileSystem\Json\JsonFileSystem;
|
||||
use RectorPrefix20220521\Symplify\SmartFileSystem\SmartFileSystem;
|
||||
use RectorPrefix20220522\Symfony\Component\Console\Application;
|
||||
use function RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
||||
use RectorPrefix20220522\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Console\Command\CommandNaming;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Php\TypeChecker;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Strings\StringFormatConverter;
|
||||
use RectorPrefix20220522\Symplify\SmartFileSystem\FileSystemFilter;
|
||||
use RectorPrefix20220522\Symplify\SmartFileSystem\FileSystemGuard;
|
||||
use RectorPrefix20220522\Symplify\SmartFileSystem\Finder\FinderSanitizer;
|
||||
use RectorPrefix20220522\Symplify\SmartFileSystem\Json\JsonFileSystem;
|
||||
use RectorPrefix20220522\Symplify\SmartFileSystem\SmartFileSystem;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$services = $rectorConfig->services();
|
||||
$services->defaults()->public()->autowire()->autoconfigure();
|
||||
$services->load('Rector\\Core\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Rector', __DIR__ . '/../src/Console/Style/RectorConsoleOutputStyle.php', __DIR__ . '/../src/Exception', __DIR__ . '/../src/DependencyInjection/CompilerPass', __DIR__ . '/../src/DependencyInjection/Loader', __DIR__ . '/../src/Kernel', __DIR__ . '/../src/ValueObject', __DIR__ . '/../src/Bootstrap', __DIR__ . '/../src/Enum', __DIR__ . '/../src/PhpParser/Node/CustomNode', __DIR__ . '/../src/PhpParser/ValueObject', __DIR__ . '/../src/functions', __DIR__ . '/../src/constants.php']);
|
||||
$services->alias(\RectorPrefix20220521\Symfony\Component\Console\Application::class, \Rector\Core\Console\ConsoleApplication::class);
|
||||
$services->set(\RectorPrefix20220521\Symplify\SmartFileSystem\FileSystemGuard::class);
|
||||
$services->set(\Rector\Core\Validation\Collector\EmptyConfigurableRectorCollector::class)->arg('$containerBuilder', \RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
|
||||
$services->set(\RectorPrefix20220521\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser::class);
|
||||
$services->alias(\RectorPrefix20220522\Symfony\Component\Console\Application::class, \Rector\Core\Console\ConsoleApplication::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\SmartFileSystem\FileSystemGuard::class);
|
||||
$services->set(\Rector\Core\Validation\Collector\EmptyConfigurableRectorCollector::class)->arg('$containerBuilder', \RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
|
||||
$services->set(\RectorPrefix20220522\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser::class);
|
||||
$services->set(\PhpParser\ParserFactory::class);
|
||||
$services->set(\PhpParser\BuilderFactory::class);
|
||||
$services->set(\PhpParser\NodeVisitor\CloningVisitor::class);
|
||||
$services->set(\PhpParser\NodeFinder::class);
|
||||
$services->set(\Rector\Core\Console\Style\RectorConsoleOutputStyle::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\Core\Console\Style\RectorConsoleOutputStyleFactory::class), 'create']);
|
||||
$services->set(\PHPStan\Parser\Parser::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createPHPStanParser']);
|
||||
$services->set(\PhpParser\Lexer::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createEmulativeLexer']);
|
||||
$services->set(\Rector\Core\Console\Style\RectorConsoleOutputStyle::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\Core\Console\Style\RectorConsoleOutputStyleFactory::class), 'create']);
|
||||
$services->set(\PHPStan\Parser\Parser::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createPHPStanParser']);
|
||||
$services->set(\PhpParser\Lexer::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createEmulativeLexer']);
|
||||
// symplify/package-builder
|
||||
$services->set(\RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesAccessor::class);
|
||||
$services->set(\RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesCaller::class);
|
||||
$services->set(\RectorPrefix20220521\Symplify\SmartFileSystem\Finder\FinderSanitizer::class);
|
||||
$services->set(\RectorPrefix20220521\Symplify\SmartFileSystem\FileSystemFilter::class);
|
||||
$services->set(\RectorPrefix20220521\Symplify\PackageBuilder\Parameter\ParameterProvider::class)->arg('$container', \RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
|
||||
$services->set(\RectorPrefix20220521\Symplify\PackageBuilder\Console\Command\CommandNaming::class);
|
||||
$services->set(\RectorPrefix20220521\Symplify\SmartFileSystem\SmartFileSystem::class);
|
||||
$services->set(\RectorPrefix20220521\Symplify\PackageBuilder\Strings\StringFormatConverter::class);
|
||||
$services->set(\RectorPrefix20220521\Symplify\SmartFileSystem\Json\JsonFileSystem::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesAccessor::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesCaller::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\SmartFileSystem\Finder\FinderSanitizer::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\SmartFileSystem\FileSystemFilter::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\PackageBuilder\Parameter\ParameterProvider::class)->arg('$container', \RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
|
||||
$services->set(\RectorPrefix20220522\Symplify\PackageBuilder\Console\Command\CommandNaming::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\SmartFileSystem\SmartFileSystem::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\PackageBuilder\Strings\StringFormatConverter::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\SmartFileSystem\Json\JsonFileSystem::class);
|
||||
$services->set(\PhpParser\NodeVisitor\NodeConnectingVisitor::class);
|
||||
$services->set(\RectorPrefix20220521\Doctrine\Inflector\Rules\English\InflectorFactory::class);
|
||||
$services->set(\RectorPrefix20220521\Doctrine\Inflector\Inflector::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20220521\Doctrine\Inflector\Rules\English\InflectorFactory::class), 'build']);
|
||||
$services->set(\RectorPrefix20220521\Composer\Semver\VersionParser::class);
|
||||
$services->set(\RectorPrefix20220521\Symplify\PackageBuilder\Php\TypeChecker::class);
|
||||
$services->set(\RectorPrefix20220522\Doctrine\Inflector\Rules\English\InflectorFactory::class);
|
||||
$services->set(\RectorPrefix20220522\Doctrine\Inflector\Inflector::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20220522\Doctrine\Inflector\Rules\English\InflectorFactory::class), 'build']);
|
||||
$services->set(\RectorPrefix20220522\Composer\Semver\VersionParser::class);
|
||||
$services->set(\RectorPrefix20220522\Symplify\PackageBuilder\Php\TypeChecker::class);
|
||||
// phpdoc parser
|
||||
$services->set(\PHPStan\PhpDocParser\Lexer\Lexer::class);
|
||||
$services->alias(\PHPStan\PhpDocParser\Parser\PhpDocParser::class, \Rector\BetterPhpDocParser\PhpDocParser\BetterPhpDocParser::class);
|
||||
// cache
|
||||
$services->set(\PHPStan\Dependency\DependencyResolver::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDependencyResolver']);
|
||||
$services->set(\PHPStan\File\FileHelper::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createFileHelper']);
|
||||
$services->set(\Rector\Caching\Cache::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\Caching\CacheFactory::class), 'create']);
|
||||
$services->set(\PHPStan\Dependency\DependencyResolver::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDependencyResolver']);
|
||||
$services->set(\PHPStan\File\FileHelper::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createFileHelper']);
|
||||
$services->set(\Rector\Caching\Cache::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\Caching\CacheFactory::class), 'create']);
|
||||
// type resolving
|
||||
$services->set(\Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator::class);
|
||||
$services->alias(\PHPStan\PhpDocParser\Parser\TypeParser::class, \Rector\BetterPhpDocParser\PhpDocParser\BetterTypeParser::class);
|
||||
// PHPStan services
|
||||
$services->set(\PHPStan\Reflection\ReflectionProvider::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createReflectionProvider']);
|
||||
$services->set(\PHPStan\Analyser\NodeScopeResolver::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createNodeScopeResolver']);
|
||||
$services->set(\PHPStan\Analyser\ScopeFactory::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createScopeFactory']);
|
||||
$services->set(\PHPStan\PhpDoc\TypeNodeResolver::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createTypeNodeResolver']);
|
||||
$services->set(\Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider::class)->factory([\RectorPrefix20220521\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDynamicSourceLocatorProvider']);
|
||||
$services->set(\RectorPrefix20220521\Idiosyncratic\EditorConfig\EditorConfig::class);
|
||||
$services->set(\RectorPrefix20220521\Ergebnis\Json\Printer\Printer::class);
|
||||
$services->alias(\RectorPrefix20220521\Ergebnis\Json\Printer\PrinterInterface::class, \RectorPrefix20220521\Ergebnis\Json\Printer\Printer::class);
|
||||
$services->set(\PHPStan\Reflection\ReflectionProvider::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createReflectionProvider']);
|
||||
$services->set(\PHPStan\Analyser\NodeScopeResolver::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createNodeScopeResolver']);
|
||||
$services->set(\PHPStan\Analyser\ScopeFactory::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createScopeFactory']);
|
||||
$services->set(\PHPStan\PhpDoc\TypeNodeResolver::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createTypeNodeResolver']);
|
||||
$services->set(\Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider::class)->factory([\RectorPrefix20220522\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDynamicSourceLocatorProvider']);
|
||||
$services->set(\RectorPrefix20220522\Idiosyncratic\EditorConfig\EditorConfig::class);
|
||||
$services->set(\RectorPrefix20220522\Ergebnis\Json\Printer\Printer::class);
|
||||
$services->alias(\RectorPrefix20220522\Ergebnis\Json\Printer\PrinterInterface::class, \RectorPrefix20220522\Ergebnis\Json\Printer\Printer::class);
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\DependencyInjection\Rector\Class_\ActionInjectionToConstructorInjectionRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\CodeQuality\Rector\Array_\ArrayThisCallToThisMethodCallRector;
|
||||
use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\CodingStyle\Rector\Assign\PHPStormVarAnnotationRector;
|
||||
use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
// @see https://ocramius.github.io/blog/fluent-interfaces-are-evil/
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Symfony\Rector\ClassMethod\RemoveServiceFromSensioRouteRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Symfony\Rector\ClassMethod\TemplateAnnotationToThisRenderRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Arguments\Rector\FuncCall\SwapFuncCallArgumentsRector;
|
||||
use Rector\Arguments\ValueObject\SwapFuncCallArguments;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php52\Rector\Property\VarToPublicPropertyRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php54\Rector\Break_\RemoveZeroBreakContinueRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php56\Rector\FuncCall\PowToExpRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php70\Rector\Assign\ListSplitStringRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php71\Rector\Assign\AssignArrayToStringRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php72\Rector\Assign\ListEachRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector;
|
||||
use Rector\Arguments\Rector\FuncCall\FunctionArgumentDefaultValueReplacerRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php82\Rector\Class_\ReadOnlyClassRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Privatization\Rector\Class_\ChangeGlobalVariablesToPropertiesRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\DogFood\Rector\Closure\UpgradeRectorConfigRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220521;
|
||||
namespace RectorPrefix20220522;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfFunctionExistsRector;
|
||||
|
@ -1875,7 +1875,9 @@ use Rector\CodingStyle\Rector\FuncCall\ConsistentPregDelimiterRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(ConsistentPregDelimiterRector::class, [Rector\CodingStyle\Rector\FuncCall\ConsistentPregDelimiterRector::DELIMITER: '#']);
|
||||
$rectorConfig->ruleWithConfiguration(ConsistentPregDelimiterRector::class, [
|
||||
ConsistentPregDelimiterRector::DELIMITER => '#',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -2170,12 +2172,15 @@ Changes `$this->...` and static:: to self:: or vise versa for given types
|
||||
- class: [`Rector\CodingStyle\Rector\MethodCall\PreferThisOrSelfMethodCallRector`](../rules/CodingStyle/Rector/MethodCall/PreferThisOrSelfMethodCallRector.php)
|
||||
|
||||
```php
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Rector\CodingStyle\Enum\PreferenceSelfThis;
|
||||
use Rector\CodingStyle\Rector\MethodCall\PreferThisOrSelfMethodCallRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(PreferThisOrSelfMethodCallRector::class, [PHPUnit\Framework\TestCase: PreferenceSelfThis::PREFER_SELF()]);
|
||||
$rectorConfig->ruleWithConfiguration(PreferThisOrSelfMethodCallRector::class, [
|
||||
TestCase::class => PreferenceSelfThis::PREFER_SELF(),
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -3513,7 +3518,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(RemoveUnusedPrivatePropertyRector::class, [Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector::REMOVE_ASSIGN_SIDE_EFFECT: true]);
|
||||
$rectorConfig->ruleWithConfiguration(RemoveUnusedPrivatePropertyRector::class, [
|
||||
RemoveUnusedPrivatePropertyRector::REMOVE_ASSIGN_SIDE_EFFECT => true,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -3774,7 +3781,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\DependencyInjection\Rector\ClassMethod\AddMethodParentCallRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(AddMethodParentCallRector::class, [ParentClassWithNewConstructor: '__construct']);
|
||||
$rectorConfig->ruleWithConfiguration(AddMethodParentCallRector::class, [
|
||||
'ParentClassWithNewConstructor' => '__construct',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -4739,7 +4748,10 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\DowngradePhp72\Rector\ClassMethod\DowngradeParameterTypeWideningRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(DowngradeParameterTypeWideningRector::class, [ContainerInterface: ['set', 'get', 'has', 'initialized'], SomeContainerInterface: ['set', 'has']]);
|
||||
$rectorConfig->ruleWithConfiguration(DowngradeParameterTypeWideningRector::class, [
|
||||
'ContainerInterface' => ['set', 'get', 'has', 'initialized'],
|
||||
'SomeContainerInterface' => ['set', 'has'],
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -7367,7 +7379,10 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Php71\Rector\Name\ReservedObjectRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(ReservedObjectRector::class, [ReservedObject: 'SmartObject', Object: 'AnotherSmartObject']);
|
||||
$rectorConfig->ruleWithConfiguration(ReservedObjectRector::class, [
|
||||
'ReservedObject' => 'SmartObject',
|
||||
'Object' => 'AnotherSmartObject',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -7723,7 +7738,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(AddLiteralSeparatorToNumberRector::class, [Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector::LIMIT_VALUE: 1000000]);
|
||||
$rectorConfig->ruleWithConfiguration(AddLiteralSeparatorToNumberRector::class, [
|
||||
AddLiteralSeparatorToNumberRector::LIMIT_VALUE => 1000000,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -7985,7 +8002,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Php74\Rector\Property\TypedPropertyRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(TypedPropertyRector::class, [Rector\Php74\Rector\Property\TypedPropertyRector::INLINE_PUBLIC: false]);
|
||||
$rectorConfig->ruleWithConfiguration(TypedPropertyRector::class, [
|
||||
TypedPropertyRector::INLINE_PUBLIC => false,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -8153,7 +8172,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Php80\Rector\Class_\DoctrineAnnotationClassToAttributeRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(DoctrineAnnotationClassToAttributeRector::class, [Rector\Php80\Rector\Class_\DoctrineAnnotationClassToAttributeRector::REMOVE_ANNOTATIONS: true]);
|
||||
$rectorConfig->ruleWithConfiguration(DoctrineAnnotationClassToAttributeRector::class, [
|
||||
DoctrineAnnotationClassToAttributeRector::REMOVE_ANNOTATIONS => true,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9332,7 +9353,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [App\SomeOldClass: 'App\SomeNewClass']);
|
||||
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
|
||||
'App\SomeOldClass' => 'App\SomeNewClass',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9370,7 +9393,10 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\ConstFetch\RenameConstantRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(RenameConstantRector::class, [MYSQL_ASSOC: 'MYSQLI_ASSOC', OLD_CONSTANT: 'NEW_CONSTANT']);
|
||||
$rectorConfig->ruleWithConfiguration(RenameConstantRector::class, [
|
||||
'MYSQL_ASSOC' => 'MYSQLI_ASSOC',
|
||||
'OLD_CONSTANT' => 'NEW_CONSTANT',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9402,7 +9428,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\FuncCall\RenameFunctionRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(RenameFunctionRector::class, [view: 'Laravel\Templating\render']);
|
||||
$rectorConfig->ruleWithConfiguration(RenameFunctionRector::class, [
|
||||
'view' => 'Laravel\Templating\render',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9459,7 +9487,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\Namespace_\RenameNamespaceRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(RenameNamespaceRector::class, [SomeOldNamespace: 'SomeNewNamespace']);
|
||||
$rectorConfig->ruleWithConfiguration(RenameNamespaceRector::class, [
|
||||
'SomeOldNamespace' => 'SomeNewNamespace',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9545,7 +9575,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\String_\RenameStringRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(RenameStringRector::class, [ROLE_PREVIOUS_ADMIN: 'IS_IMPERSONATOR']);
|
||||
$rectorConfig->ruleWithConfiguration(RenameStringRector::class, [
|
||||
'ROLE_PREVIOUS_ADMIN' => 'IS_IMPERSONATOR',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9696,7 +9728,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Strict\Rector\BooleanNot\BooleanInBooleanNotRuleFixerRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(BooleanInBooleanNotRuleFixerRector::class, [Rector\Strict\Rector\BooleanNot\BooleanInBooleanNotRuleFixerRector::TREAT_AS_NON_EMPTY: true]);
|
||||
$rectorConfig->ruleWithConfiguration(BooleanInBooleanNotRuleFixerRector::class, [
|
||||
BooleanInBooleanNotRuleFixerRector::TREAT_AS_NON_EMPTY => true,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9732,7 +9766,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Strict\Rector\If_\BooleanInIfConditionRuleFixerRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(BooleanInIfConditionRuleFixerRector::class, [Rector\Strict\Rector\If_\BooleanInIfConditionRuleFixerRector::TREAT_AS_NON_EMPTY: false]);
|
||||
$rectorConfig->ruleWithConfiguration(BooleanInIfConditionRuleFixerRector::class, [
|
||||
BooleanInIfConditionRuleFixerRector::TREAT_AS_NON_EMPTY => false,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9768,7 +9804,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Strict\Rector\Ternary\BooleanInTernaryOperatorRuleFixerRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(BooleanInTernaryOperatorRuleFixerRector::class, [Rector\Strict\Rector\Ternary\BooleanInTernaryOperatorRuleFixerRector::TREAT_AS_NON_EMPTY: false]);
|
||||
$rectorConfig->ruleWithConfiguration(BooleanInTernaryOperatorRuleFixerRector::class, [
|
||||
BooleanInTernaryOperatorRuleFixerRector::TREAT_AS_NON_EMPTY => false,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9800,7 +9838,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(DisallowedEmptyRuleFixerRector::class, [Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector::TREAT_AS_NON_EMPTY: false]);
|
||||
$rectorConfig->ruleWithConfiguration(DisallowedEmptyRuleFixerRector::class, [
|
||||
DisallowedEmptyRuleFixerRector::TREAT_AS_NON_EMPTY => false,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9832,7 +9872,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Strict\Rector\Ternary\DisallowedShortTernaryRuleFixerRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(DisallowedShortTernaryRuleFixerRector::class, [Rector\Strict\Rector\Ternary\DisallowedShortTernaryRuleFixerRector::TREAT_AS_NON_EMPTY: false]);
|
||||
$rectorConfig->ruleWithConfiguration(DisallowedShortTernaryRuleFixerRector::class, [
|
||||
DisallowedShortTernaryRuleFixerRector::TREAT_AS_NON_EMPTY => false,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -9896,7 +9938,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Transform\Rector\Class_\AddInterfaceByTraitRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(AddInterfaceByTraitRector::class, [SomeTrait: 'SomeInterface']);
|
||||
$rectorConfig->ruleWithConfiguration(AddInterfaceByTraitRector::class, [
|
||||
'SomeTrait' => 'SomeInterface',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -10162,7 +10206,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Transform\Rector\FuncCall\FuncCallToConstFetchRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(FuncCallToConstFetchRector::class, [php_sapi_name: 'PHP_SAPI']);
|
||||
$rectorConfig->ruleWithConfiguration(FuncCallToConstFetchRector::class, [
|
||||
'php_sapi_name' => 'PHP_SAPI',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -10240,7 +10286,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Transform\Rector\FuncCall\FuncCallToNewRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(FuncCallToNewRector::class, [collection: ['Collection']]);
|
||||
$rectorConfig->ruleWithConfiguration(FuncCallToNewRector::class, [
|
||||
'collection' => ['Collection'],
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -10333,7 +10381,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Transform\Rector\Class_\MergeInterfacesRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(MergeInterfacesRector::class, [SomeOldInterface: 'SomeInterface']);
|
||||
$rectorConfig->ruleWithConfiguration(MergeInterfacesRector::class, [
|
||||
'SomeOldInterface' => 'SomeInterface',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -10436,7 +10486,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Transform\Rector\MethodCall\MethodCallToPropertyFetchRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(MethodCallToPropertyFetchRector::class, [someMethod: 'someProperty']);
|
||||
$rectorConfig->ruleWithConfiguration(MethodCallToPropertyFetchRector::class, [
|
||||
'someMethod' => 'someProperty',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -10845,7 +10897,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Transform\Rector\ClassMethod\ReturnTypeWillChangeRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(ReturnTypeWillChangeRector::class, [ArrayAccess: ['offsetGet']]);
|
||||
$rectorConfig->ruleWithConfiguration(ReturnTypeWillChangeRector::class, [
|
||||
ArrayAccess::class => ['offsetGet'],
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -11098,7 +11152,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\Transform\Rector\String_\ToStringToMethodCallRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(ToStringToMethodCallRector::class, [SomeObject: 'getPath']);
|
||||
$rectorConfig->ruleWithConfiguration(ToStringToMethodCallRector::class, [
|
||||
'SomeObject' => 'getPath',
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -11398,7 +11454,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(AddVoidReturnTypeWhereNoReturnRector::class, [Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector::USE_PHPDOC: false]);
|
||||
$rectorConfig->ruleWithConfiguration(AddVoidReturnTypeWhereNoReturnRector::class, [
|
||||
AddVoidReturnTypeWhereNoReturnRector::USE_PHPDOC => false,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
@ -11766,7 +11824,9 @@ use Rector\Config\RectorConfig;
|
||||
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector::INLINE_PUBLIC: false]);
|
||||
$rectorConfig->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [
|
||||
TypedPropertyFromAssignsRector::INLINE_PUBLIC => false,
|
||||
]);
|
||||
};
|
||||
```
|
||||
|
||||
|
@ -6,7 +6,7 @@ namespace Rector\BetterPhpDocParser\Comment;
|
||||
use PhpParser\Comment;
|
||||
use PhpParser\Node;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use RectorPrefix20220521\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
use RectorPrefix20220522\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
final class CommentsMerger
|
||||
{
|
||||
/**
|
||||
@ -14,7 +14,7 @@ final class CommentsMerger
|
||||
* @var \Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser
|
||||
*/
|
||||
private $simpleCallableNodeTraverser;
|
||||
public function __construct(\RectorPrefix20220521\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser $simpleCallableNodeTraverser)
|
||||
public function __construct(\RectorPrefix20220522\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser $simpleCallableNodeTraverser)
|
||||
{
|
||||
$this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\Contract;
|
||||
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\Contract\PhpDocNodeVisitorInterface;
|
||||
interface BasePhpDocNodeVisitorInterface extends \RectorPrefix20220521\Symplify\Astral\PhpDocParser\Contract\PhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\Contract\PhpDocNodeVisitorInterface;
|
||||
interface BasePhpDocNodeVisitorInterface extends \RectorPrefix20220522\Symplify\Astral\PhpDocParser\Contract\PhpDocNodeVisitorInterface
|
||||
{
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ use Rector\BetterPhpDocParser\ValueObject\Type\ShortenedIdentifierTypeNode;
|
||||
use Rector\ChangesReporting\Collector\RectorChangeCollector;
|
||||
use Rector\Core\Configuration\CurrentNodeProvider;
|
||||
use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
/**
|
||||
* @template TNode as \PHPStan\PhpDocParser\Ast\Node
|
||||
* @see \Rector\Tests\BetterPhpDocParser\PhpDocInfo\PhpDocInfo\PhpDocInfoTest
|
||||
@ -297,7 +297,7 @@ final class PhpDocInfo
|
||||
*/
|
||||
public function removeByType(string $typeToRemove) : void
|
||||
{
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser->traverseWithCallable($this->phpDocNode, '', function (\PHPStan\PhpDocParser\Ast\Node $node) use($typeToRemove) : ?int {
|
||||
if ($node instanceof \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode && \is_a($node->value, $typeToRemove, \true)) {
|
||||
// keep special annotation for tools
|
||||
@ -308,13 +308,13 @@ final class PhpDocInfo
|
||||
return null;
|
||||
}
|
||||
$this->markAsChanged();
|
||||
return \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
return \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
}
|
||||
if (!\is_a($node, $typeToRemove, \true)) {
|
||||
return null;
|
||||
}
|
||||
$this->markAsChanged();
|
||||
return \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
return \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
});
|
||||
}
|
||||
/**
|
||||
@ -430,7 +430,7 @@ final class PhpDocInfo
|
||||
return \true;
|
||||
}
|
||||
// has a single node with missing start_end
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$changedPhpDocNodeVisitor = new \Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor();
|
||||
$phpDocNodeTraverser->addPhpDocNodeVisitor($changedPhpDocNodeVisitor);
|
||||
$phpDocNodeTraverser->traverse($this->phpDocNode);
|
||||
|
@ -6,7 +6,7 @@ namespace Rector\BetterPhpDocParser\PhpDocInfo;
|
||||
use PHPStan\PhpDocParser\Lexer\Lexer;
|
||||
use PHPStan\PhpDocParser\Parser\TokenIterator;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
final class TokenIteratorFactory
|
||||
{
|
||||
/**
|
||||
@ -23,7 +23,7 @@ final class TokenIteratorFactory
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
public function __construct(\PHPStan\PhpDocParser\Lexer\Lexer $lexer, \RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor)
|
||||
public function __construct(\PHPStan\PhpDocParser\Lexer\Lexer $lexer, \RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor)
|
||||
{
|
||||
$this->lexer = $lexer;
|
||||
$this->privatesAccessor = $privatesAccessor;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\PhpDocManipulator;
|
||||
|
||||
use RectorPrefix20220521\Nette\Utils\Strings;
|
||||
use RectorPrefix20220522\Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
@ -82,7 +82,7 @@ final class PhpDocClassRenamer
|
||||
$doctrineAnnotationTagValueNode->changeSilentValue($newClass);
|
||||
continue;
|
||||
}
|
||||
$newContent = \RectorPrefix20220521\Nette\Utils\Strings::replace($className, '#\\b' . \preg_quote($oldClass, '#') . '\\b#', $newClass);
|
||||
$newContent = \RectorPrefix20220522\Nette\Utils\Strings::replace($className, '#\\b' . \preg_quote($oldClass, '#') . '\\b#', $newClass);
|
||||
if ($newContent === $className) {
|
||||
continue;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ use PHPStan\PhpDocParser\Ast\Node;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
|
||||
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
final class PhpDocTagRemover
|
||||
{
|
||||
public function removeByName(\Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo $phpDocInfo, string $name) : void
|
||||
@ -33,17 +33,17 @@ final class PhpDocTagRemover
|
||||
public function removeTagValueFromNode(\Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo $phpDocInfo, \PHPStan\PhpDocParser\Ast\Node $desiredNode) : void
|
||||
{
|
||||
$phpDocNode = $phpDocInfo->getPhpDocNode();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function ($node) use($desiredNode, $phpDocInfo) : ?int {
|
||||
if ($node instanceof \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode && $node->value === $desiredNode) {
|
||||
$phpDocInfo->markAsChanged();
|
||||
return \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
return \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
}
|
||||
if ($node !== $desiredNode) {
|
||||
return null;
|
||||
}
|
||||
$phpDocInfo->markAsChanged();
|
||||
return \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
return \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
});
|
||||
}
|
||||
private function areAnnotationNamesEqual(string $firstAnnotationName, string $secondAnnotationName) : bool
|
||||
|
@ -6,7 +6,7 @@ namespace Rector\BetterPhpDocParser\PhpDocNodeFinder;
|
||||
use PHPStan\PhpDocParser\Ast\Node;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode;
|
||||
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
/**
|
||||
* @template TNode as \PHPStan\PhpDocParser\Ast\Node
|
||||
*/
|
||||
@ -18,7 +18,7 @@ final class PhpDocNodeByTypeFinder
|
||||
*/
|
||||
public function findByType(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $phpDocNode, string $desiredType) : array
|
||||
{
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$foundNodes = [];
|
||||
$phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function ($node) use(&$foundNodes, $desiredType) : Node {
|
||||
if (!\is_a($node, $desiredType, \true)) {
|
||||
|
@ -7,9 +7,9 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor;
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor;
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor;
|
||||
/**
|
||||
* @see \Rector\Tests\BetterPhpDocParser\PhpDocNodeMapperTest
|
||||
*/
|
||||
@ -38,7 +38,7 @@ final class PhpDocNodeMapper
|
||||
/**
|
||||
* @param BasePhpDocNodeVisitorInterface[] $phpDocNodeVisitors
|
||||
*/
|
||||
public function __construct(\Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider $currentTokenIteratorProvider, \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor $parentConnectingPhpDocNodeVisitor, \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor $cloningPhpDocNodeVisitor, array $phpDocNodeVisitors)
|
||||
public function __construct(\Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider $currentTokenIteratorProvider, \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor $parentConnectingPhpDocNodeVisitor, \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor $cloningPhpDocNodeVisitor, array $phpDocNodeVisitors)
|
||||
{
|
||||
$this->currentTokenIteratorProvider = $currentTokenIteratorProvider;
|
||||
$this->parentConnectingPhpDocNodeVisitor = $parentConnectingPhpDocNodeVisitor;
|
||||
@ -48,13 +48,13 @@ final class PhpDocNodeMapper
|
||||
public function transform(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $phpDocNode, \Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator $betterTokenIterator) : void
|
||||
{
|
||||
$this->currentTokenIteratorProvider->setBetterTokenIterator($betterTokenIterator);
|
||||
$parentPhpDocNodeTraverser = new \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$parentPhpDocNodeTraverser = new \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$parentPhpDocNodeTraverser->addPhpDocNodeVisitor($this->parentConnectingPhpDocNodeVisitor);
|
||||
$parentPhpDocNodeTraverser->traverse($phpDocNode);
|
||||
$cloningPhpDocNodeTraverser = new \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$cloningPhpDocNodeTraverser = new \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$cloningPhpDocNodeTraverser->addPhpDocNodeVisitor($this->cloningPhpDocNodeVisitor);
|
||||
$cloningPhpDocNodeTraverser->traverse($phpDocNode);
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
foreach ($this->phpDocNodeVisitors as $phpDocNodeVisitor) {
|
||||
$phpDocNodeTraverser->addPhpDocNodeVisitor($phpDocNodeVisitor);
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\PhpDocNodeTraverser;
|
||||
|
||||
use Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
final class ChangedPhpDocNodeTraverserFactory
|
||||
{
|
||||
/**
|
||||
@ -16,9 +16,9 @@ final class ChangedPhpDocNodeTraverserFactory
|
||||
{
|
||||
$this->changedPhpDocNodeVisitor = $changedPhpDocNodeVisitor;
|
||||
}
|
||||
public function create() : \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser
|
||||
public function create() : \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser
|
||||
{
|
||||
$changedPhpDocNodeTraverser = new \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$changedPhpDocNodeTraverser = new \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser();
|
||||
$changedPhpDocNodeTraverser->addPhpDocNodeVisitor($this->changedPhpDocNodeVisitor);
|
||||
return $changedPhpDocNodeTraverser;
|
||||
}
|
||||
|
@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\ArrayTypeNode;
|
||||
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ArrayTypePhpDocNodeVisitor extends \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ArrayTypePhpDocNodeVisitor extends \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\CallableTypeNode;
|
||||
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareCallableTypeNode;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class CallableTypePhpDocNodeVisitor extends \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class CallableTypePhpDocNodeVisitor extends \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -5,8 +5,8 @@ namespace Rector\BetterPhpDocParser\PhpDocNodeVisitor;
|
||||
|
||||
use PHPStan\PhpDocParser\Ast\Node;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ChangedPhpDocNodeVisitor extends \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ChangedPhpDocNodeVisitor extends \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
|
@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\IntersectionTypeNode;
|
||||
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareIntersectionTypeNode;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class IntersectionTypeNodePhpDocNodeVisitor extends \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class IntersectionTypeNodePhpDocNodeVisitor extends \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
|
||||
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDoc\VariadicAwareParamTagValueNode;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ParamPhpDocNodeVisitor extends \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ParamPhpDocNodeVisitor extends \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -14,8 +14,8 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDoc\SpacingAwareTemplateTagValueNod
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class TemplatePhpDocNodeVisitor extends \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class TemplatePhpDocNodeVisitor extends \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -13,8 +13,8 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareUnionTypeNode;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class UnionTypeNodePhpDocNodeVisitor extends \RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class UnionTypeNodePhpDocNodeVisitor extends \RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -18,7 +18,7 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
/**
|
||||
* @see \Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\TagValueNodeReprintTest
|
||||
*/
|
||||
@ -44,7 +44,7 @@ final class BetterPhpDocParser extends \PHPStan\PhpDocParser\Parser\PhpDocParser
|
||||
$this->tokenIteratorFactory = $tokenIteratorFactory;
|
||||
$this->doctrineAnnotationDecorator = $doctrineAnnotationDecorator;
|
||||
parent::__construct($typeParser, $constExprParser);
|
||||
$this->privatesCaller = new \RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesCaller();
|
||||
$this->privatesCaller = new \RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesCaller();
|
||||
}
|
||||
public function parse(\PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator) : \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\PhpDocParser;
|
||||
|
||||
use RectorPrefix20220521\Nette\Utils\Strings;
|
||||
use RectorPrefix20220522\Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocChildNode;
|
||||
@ -230,7 +230,7 @@ final class DoctrineAnnotationDecorator
|
||||
}
|
||||
private function resolveFqnAnnotationSpacelessPhpDocTagNode(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTextNode $phpDocTextNode) : ?\Rector\BetterPhpDocParser\PhpDoc\SpacelessPhpDocTagNode
|
||||
{
|
||||
$match = \RectorPrefix20220521\Nette\Utils\Strings::match($phpDocTextNode->text, self::LONG_ANNOTATION_REGEX);
|
||||
$match = \RectorPrefix20220522\Nette\Utils\Strings::match($phpDocTextNode->text, self::LONG_ANNOTATION_REGEX);
|
||||
$fullyQualifiedAnnotationClass = $match['class_name'] ?? null;
|
||||
if ($fullyQualifiedAnnotationClass === null) {
|
||||
return null;
|
||||
|
@ -25,7 +25,7 @@ use Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer;
|
||||
use Rector\PhpAttribute\Printer\PhpAttributeGroupFactory;
|
||||
use Rector\PHPStanStaticTypeMapper\Utils\TypeUnwrapper;
|
||||
use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
use RectorPrefix20220521\ReturnTypeWillChange;
|
||||
use RectorPrefix20220522\ReturnTypeWillChange;
|
||||
/**
|
||||
* @see https://wiki.php.net/rfc/internal_method_return_types#proposal
|
||||
*/
|
||||
|
@ -17,7 +17,7 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use Rector\Core\Configuration\CurrentNodeProvider;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use RectorPrefix20220521\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix20220522\Symfony\Contracts\Service\Attribute\Required;
|
||||
final class PlainValueParser
|
||||
{
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\Printer;
|
||||
|
||||
use RectorPrefix20220521\Nette\Utils\Strings;
|
||||
use RectorPrefix20220522\Nette\Utils\Strings;
|
||||
final class DocBlockInliner
|
||||
{
|
||||
/**
|
||||
@ -18,7 +18,7 @@ final class DocBlockInliner
|
||||
private const NEWLINE_MIDDLE_DOC_REGEX = "#\n \\* #";
|
||||
public function inline(string $docContent) : string
|
||||
{
|
||||
$docContent = \RectorPrefix20220521\Nette\Utils\Strings::replace($docContent, self::NEWLINE_MIDDLE_DOC_REGEX, ' ');
|
||||
return \RectorPrefix20220521\Nette\Utils\Strings::replace($docContent, self::NEWLINE_CLOSING_DOC_REGEX, ' */');
|
||||
$docContent = \RectorPrefix20220522\Nette\Utils\Strings::replace($docContent, self::NEWLINE_MIDDLE_DOC_REGEX, ' ');
|
||||
return \RectorPrefix20220522\Nette\Utils\Strings::replace($docContent, self::NEWLINE_CLOSING_DOC_REGEX, ' */');
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\Printer;
|
||||
|
||||
use RectorPrefix20220521\Nette\Utils\Strings;
|
||||
use RectorPrefix20220522\Nette\Utils\Strings;
|
||||
use PhpParser\Node\Stmt\InlineHTML;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocChildNode;
|
||||
@ -22,7 +22,7 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use Rector\Core\Util\StringUtils;
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\PhpDocNodeTraverser;
|
||||
/**
|
||||
* @see \Rector\Tests\BetterPhpDocParser\PhpDocInfo\PhpDocInfoPrinter\PhpDocInfoPrinterTest
|
||||
*/
|
||||
@ -146,7 +146,7 @@ final class PhpDocInfoPrinter
|
||||
$this->currentTokenPosition = 0;
|
||||
$phpDocString = $this->printPhpDocNode($phpDocNode);
|
||||
// hotfix of extra space with callable ()
|
||||
return \RectorPrefix20220521\Nette\Utils\Strings::replace($phpDocString, self::CALLABLE_REGEX, 'callable(');
|
||||
return \RectorPrefix20220522\Nette\Utils\Strings::replace($phpDocString, self::CALLABLE_REGEX, 'callable(');
|
||||
}
|
||||
public function getCurrentPhpDocInfo() : \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo
|
||||
{
|
||||
@ -195,7 +195,7 @@ final class PhpDocInfoPrinter
|
||||
if ($phpDocChildNode->value instanceof \Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode && $shouldReprintChildNode) {
|
||||
$printedNode = (string) $phpDocChildNode;
|
||||
// remove extra space between tags
|
||||
$printedNode = \RectorPrefix20220521\Nette\Utils\Strings::replace($printedNode, self::TAG_AND_SPACE_REGEX, '$1(');
|
||||
$printedNode = \RectorPrefix20220522\Nette\Utils\Strings::replace($printedNode, self::TAG_AND_SPACE_REGEX, '$1(');
|
||||
return self::NEWLINE_WITH_ASTERISK . ($printedNode === '' ? '' : ' ' . $printedNode);
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ namespace Rector\BetterPhpDocParser\ValueObject\Parser;
|
||||
|
||||
use PHPStan\PhpDocParser\Parser\TokenIterator;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
final class BetterTokenIterator extends \PHPStan\PhpDocParser\Parser\TokenIterator
|
||||
{
|
||||
/**
|
||||
@ -26,7 +26,7 @@ final class BetterTokenIterator extends \PHPStan\PhpDocParser\Parser\TokenIterat
|
||||
*/
|
||||
public function __construct(array $tokens, int $index = 0)
|
||||
{
|
||||
$this->privatesAccessor = new \RectorPrefix20220521\Symplify\PackageBuilder\Reflection\PrivatesAccessor();
|
||||
$this->privatesAccessor = new \RectorPrefix20220522\Symplify\PackageBuilder\Reflection\PrivatesAccessor();
|
||||
if ($tokens === []) {
|
||||
$this->privatesAccessor->setPrivateProperty($this, self::TOKENS, []);
|
||||
$this->privatesAccessor->setPrivateProperty($this, self::INDEX, 0);
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\ValueObject\PhpDoc\DoctrineAnnotation;
|
||||
|
||||
use RectorPrefix20220521\Nette\Utils\Strings;
|
||||
use RectorPrefix20220522\Nette\Utils\Strings;
|
||||
use PHPStan\PhpDocParser\Ast\Node;
|
||||
use PHPStan\PhpDocParser\Ast\NodeAttributes;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagValueNode;
|
||||
@ -168,7 +168,7 @@ abstract class AbstractValuesAwareNode implements \PHPStan\PhpDocParser\Ast\PhpD
|
||||
if (!\is_string($value)) {
|
||||
return $value;
|
||||
}
|
||||
$matches = \RectorPrefix20220521\Nette\Utils\Strings::match($value, self::UNQUOTED_VALUE_REGEX);
|
||||
$matches = \RectorPrefix20220522\Nette\Utils\Strings::match($value, self::UNQUOTED_VALUE_REGEX);
|
||||
if ($matches === null) {
|
||||
return $value;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\ValueObject;
|
||||
|
||||
use RectorPrefix20220521\Symplify\Astral\PhpDocParser\ValueObject\PhpDocAttributeKey as NativePhpDocAttributeKey;
|
||||
use RectorPrefix20220522\Symplify\Astral\PhpDocParser\ValueObject\PhpDocAttributeKey as NativePhpDocAttributeKey;
|
||||
final class PhpDocAttributeKey
|
||||
{
|
||||
/**
|
||||
@ -18,7 +18,7 @@ final class PhpDocAttributeKey
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PARENT = \RectorPrefix20220521\Symplify\Astral\PhpDocParser\ValueObject\PhpDocAttributeKey::PARENT;
|
||||
public const PARENT = \RectorPrefix20220522\Symplify\Astral\PhpDocParser\ValueObject\PhpDocAttributeKey::PARENT;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
@ -26,5 +26,5 @@ final class PhpDocAttributeKey
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const ORIG_NODE = \RectorPrefix20220521\Symplify\Astral\PhpDocParser\ValueObject\PhpDocAttributeKey::ORIG_NODE;
|
||||
public const ORIG_NODE = \RectorPrefix20220522\Symplify\Astral\PhpDocParser\ValueObject\PhpDocAttributeKey::ORIG_NODE;
|
||||
}
|
||||
|
@ -6,8 +6,8 @@ namespace Rector\Caching;
|
||||
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
|
||||
use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use RectorPrefix20220521\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
use RectorPrefix20220521\Symplify\SmartFileSystem\SmartFileSystem;
|
||||
use RectorPrefix20220522\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
use RectorPrefix20220522\Symplify\SmartFileSystem\SmartFileSystem;
|
||||
final class CacheFactory
|
||||
{
|
||||
/**
|
||||
@ -20,7 +20,7 @@ final class CacheFactory
|
||||
* @var \Symplify\SmartFileSystem\SmartFileSystem
|
||||
*/
|
||||
private $smartFileSystem;
|
||||
public function __construct(\RectorPrefix20220521\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \RectorPrefix20220521\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
|
||||
public function __construct(\RectorPrefix20220522\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \RectorPrefix20220522\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
|
||||
{
|
||||
$this->parameterProvider = $parameterProvider;
|
||||
$this->smartFileSystem = $smartFileSystem;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user