Updated Rector to commit 21c9c1c16d75305875a52d27b6119fbbcb8469b2

21c9c1c16d fix symfony/console compatibility break with psr/log
This commit is contained in:
Tomas Votruba 2021-11-23 13:20:36 +00:00
parent 76ee859481
commit b21c7e2dc8
2007 changed files with 37189 additions and 12304 deletions

View File

@ -1,17 +1,17 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use RectorPrefix20211122\Httpful\Request; use RectorPrefix20211123\Httpful\Request;
use RectorPrefix20211122\Nette\Utils\Strings; use RectorPrefix20211123\Nette\Utils\Strings;
use RectorPrefix20211122\Symfony\Component\Console\Application; use RectorPrefix20211123\Symfony\Component\Console\Application;
use RectorPrefix20211122\Symfony\Component\Console\Command\Command; use RectorPrefix20211123\Symfony\Component\Console\Command\Command;
use RectorPrefix20211122\Symfony\Component\Console\Input\InputArgument; use RectorPrefix20211123\Symfony\Component\Console\Input\InputArgument;
use RectorPrefix20211122\Symfony\Component\Console\Input\InputInterface; use RectorPrefix20211123\Symfony\Component\Console\Input\InputInterface;
use RectorPrefix20211122\Symfony\Component\Console\Output\OutputInterface; use RectorPrefix20211123\Symfony\Component\Console\Output\OutputInterface;
use RectorPrefix20211122\Symfony\Component\Process\Process; use RectorPrefix20211123\Symfony\Component\Process\Process;
use RectorPrefix20211122\Symplify\PackageBuilder\Console\Command\CommandNaming; use RectorPrefix20211123\Symplify\PackageBuilder\Console\Command\CommandNaming;
require __DIR__ . '/../vendor/autoload.php'; require __DIR__ . '/../vendor/autoload.php';
/** /**
* Inspired from @see https://github.com/phpstan/phpstan-src/blob/master/bin/generate-changelog.php * Inspired from @see https://github.com/phpstan/phpstan-src/blob/master/bin/generate-changelog.php
@ -20,7 +20,7 @@ require __DIR__ . '/../vendor/autoload.php';
* GITHUB_TOKEN=<github_token> php bin/generate-changelog.php <from-commit> <to-commit> >> <file_to_dump.md> * GITHUB_TOKEN=<github_token> php bin/generate-changelog.php <from-commit> <to-commit> >> <file_to_dump.md>
* GITHUB_TOKEN=ghp_... php bin/generate-changelog.php 07736c1 cb74bb6 >> CHANGELOG_dumped.md * GITHUB_TOKEN=ghp_... php bin/generate-changelog.php 07736c1 cb74bb6 >> CHANGELOG_dumped.md
*/ */
final class GenerateChangelogCommand extends \RectorPrefix20211122\Symfony\Component\Console\Command\Command final class GenerateChangelogCommand extends \RectorPrefix20211123\Symfony\Component\Console\Command\Command
{ {
/** /**
* @var string * @var string
@ -48,9 +48,9 @@ final class GenerateChangelogCommand extends \RectorPrefix20211122\Symfony\Compo
private const HASH = 'hash'; private const HASH = 'hash';
protected function configure() : void protected function configure() : void
{ {
$this->setName(\RectorPrefix20211122\Symplify\PackageBuilder\Console\Command\CommandNaming::classToName(self::class)); $this->setName(\RectorPrefix20211123\Symplify\PackageBuilder\Console\Command\CommandNaming::classToName(self::class));
$this->addArgument(self::OPTION_FROM_COMMIT, \RectorPrefix20211122\Symfony\Component\Console\Input\InputArgument::REQUIRED); $this->addArgument(self::OPTION_FROM_COMMIT, \RectorPrefix20211123\Symfony\Component\Console\Input\InputArgument::REQUIRED);
$this->addArgument(self::OPTION_TO_COMMIT, \RectorPrefix20211122\Symfony\Component\Console\Input\InputArgument::REQUIRED); $this->addArgument(self::OPTION_TO_COMMIT, \RectorPrefix20211123\Symfony\Component\Console\Input\InputArgument::REQUIRED);
} }
/** /**
* @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Input\InputInterface $input
@ -68,14 +68,14 @@ final class GenerateChangelogCommand extends \RectorPrefix20211122\Symfony\Compo
$i = 0; $i = 0;
foreach ($commits as $commit) { foreach ($commits as $commit) {
$searchPullRequestsUri = \sprintf('https://api.github.com/search/issues?q=repo:' . self::DEVELOPMENT_REPOSITORY_NAME . '+%s', $commit[self::HASH]); $searchPullRequestsUri = \sprintf('https://api.github.com/search/issues?q=repo:' . self::DEVELOPMENT_REPOSITORY_NAME . '+%s', $commit[self::HASH]);
$searchPullRequestsResponse = \RectorPrefix20211122\Httpful\Request::get($searchPullRequestsUri)->sendsAndExpectsType('application/json')->basicAuth('tomasvotruba', \getenv('GITHUB_TOKEN'))->send(); $searchPullRequestsResponse = \RectorPrefix20211123\Httpful\Request::get($searchPullRequestsUri)->sendsAndExpectsType('application/json')->basicAuth('tomasvotruba', \getenv('GITHUB_TOKEN'))->send();
if ($searchPullRequestsResponse->code !== 200) { if ($searchPullRequestsResponse->code !== 200) {
$output->writeln(\var_export($searchPullRequestsResponse->body, \true)); $output->writeln(\var_export($searchPullRequestsResponse->body, \true));
throw new \InvalidArgumentException((string) $searchPullRequestsResponse->code); throw new \InvalidArgumentException((string) $searchPullRequestsResponse->code);
} }
$searchPullRequestsResponse = $searchPullRequestsResponse->body; $searchPullRequestsResponse = $searchPullRequestsResponse->body;
$searchIssuesUri = \sprintf('https://api.github.com/search/issues?q=repo:' . self::DEPLOY_REPOSITORY_NAME . '+%s', $commit[self::HASH]); $searchIssuesUri = \sprintf('https://api.github.com/search/issues?q=repo:' . self::DEPLOY_REPOSITORY_NAME . '+%s', $commit[self::HASH]);
$searchIssuesResponse = \RectorPrefix20211122\Httpful\Request::get($searchIssuesUri)->sendsAndExpectsType('application/json')->basicAuth('tomasvotruba', \getenv('GITHUB_TOKEN'))->send(); $searchIssuesResponse = \RectorPrefix20211123\Httpful\Request::get($searchIssuesUri)->sendsAndExpectsType('application/json')->basicAuth('tomasvotruba', \getenv('GITHUB_TOKEN'))->send();
if ($searchIssuesResponse->code !== 200) { if ($searchIssuesResponse->code !== 200) {
$output->writeln(\var_export($searchIssuesResponse->body, \true)); $output->writeln(\var_export($searchIssuesResponse->body, \true));
throw new \InvalidArgumentException((string) $searchIssuesResponse->code); throw new \InvalidArgumentException((string) $searchIssuesResponse->code);
@ -94,7 +94,7 @@ final class GenerateChangelogCommand extends \RectorPrefix20211122\Symfony\Compo
} }
} }
// clean commit from duplicating issue number // clean commit from duplicating issue number
$commitMatch = \RectorPrefix20211122\Nette\Utils\Strings::match($commit['message'], '#(.*?)( \\(\\#\\d+\\))?$#ms'); $commitMatch = \RectorPrefix20211123\Nette\Utils\Strings::match($commit['message'], '#(.*?)( \\(\\#\\d+\\))?$#ms');
$commit = $commitMatch[1] ?? $commit['message']; $commit = $commitMatch[1] ?? $commit['message'];
$changelogLine = \sprintf('* %s (%s)%s%s', $commit, $parenthesis, $issuesToReference !== [] ? ', ' . \implode(', ', $issuesToReference) : '', $this->createThanks($thanks)); $changelogLine = \sprintf('* %s (%s)%s%s', $commit, $parenthesis, $issuesToReference !== [] ? ', ' . \implode(', ', $issuesToReference) : '', $this->createThanks($thanks));
$output->writeln($changelogLine); $output->writeln($changelogLine);
@ -124,7 +124,7 @@ final class GenerateChangelogCommand extends \RectorPrefix20211122\Symfony\Compo
*/ */
private function exec(array $commandParts) : string private function exec(array $commandParts) : string
{ {
$process = new \RectorPrefix20211122\Symfony\Component\Process\Process($commandParts); $process = new \RectorPrefix20211123\Symfony\Component\Process\Process($commandParts);
$process->run(); $process->run();
return $process->getOutput(); return $process->getOutput();
} }
@ -148,8 +148,8 @@ final class GenerateChangelogCommand extends \RectorPrefix20211122\Symfony\Compo
* GITHUB_TOKEN=ghp_... php bin/generate-changelog.php 07736c1 cb74bb6 >> CHANGELOG_dumped.md * GITHUB_TOKEN=ghp_... php bin/generate-changelog.php 07736c1 cb74bb6 >> CHANGELOG_dumped.md
*/ */
\class_alias('GenerateChangelogCommand', 'GenerateChangelogCommand', \false); \class_alias('GenerateChangelogCommand', 'GenerateChangelogCommand', \false);
$generateChangelogCommand = new \RectorPrefix20211122\GenerateChangelogCommand(); $generateChangelogCommand = new \RectorPrefix20211123\GenerateChangelogCommand();
$application = new \RectorPrefix20211122\Symfony\Component\Console\Application(); $application = new \RectorPrefix20211123\Symfony\Component\Console\Application();
$application->add($generateChangelogCommand); $application->add($generateChangelogCommand);
$application->setDefaultCommand(\RectorPrefix20211122\Symplify\PackageBuilder\Console\Command\CommandNaming::classToName(\get_class($generateChangelogCommand)), \true); $application->setDefaultCommand(\RectorPrefix20211123\Symplify\PackageBuilder\Console\Command\CommandNaming::classToName(\get_class($generateChangelogCommand)), \true);
$application->run(); $application->run();

View File

@ -1,5 +1,5 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
require_once __DIR__ . '/rector.php'; require_once __DIR__ . '/rector.php';

View File

@ -1,9 +1,9 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use RectorPrefix20211122\Nette\Utils\Json; use RectorPrefix20211123\Nette\Utils\Json;
use Rector\ChangesReporting\Output\JsonOutputFormatter; use Rector\ChangesReporting\Output\JsonOutputFormatter;
use Rector\Core\Bootstrap\RectorConfigsResolver; use Rector\Core\Bootstrap\RectorConfigsResolver;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
@ -11,9 +11,9 @@ use Rector\Core\Console\ConsoleApplication;
use Rector\Core\Console\Style\SymfonyStyleFactory; use Rector\Core\Console\Style\SymfonyStyleFactory;
use Rector\Core\DependencyInjection\RectorContainerFactory; use Rector\Core\DependencyInjection\RectorContainerFactory;
use Rector\Core\Kernel\RectorKernel; use Rector\Core\Kernel\RectorKernel;
use RectorPrefix20211122\Symfony\Component\Console\Command\Command; use RectorPrefix20211123\Symfony\Component\Console\Command\Command;
use RectorPrefix20211122\Symfony\Component\Console\Input\ArgvInput; use RectorPrefix20211123\Symfony\Component\Console\Input\ArgvInput;
use RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesCaller; use RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesCaller;
// @ intentionally: continue anyway // @ intentionally: continue anyway
@\ini_set('memory_limit', '-1'); @\ini_set('memory_limit', '-1');
// Performance boost // Performance boost
@ -22,7 +22,7 @@ use RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesCaller;
\gc_disable(); \gc_disable();
\define('__RECTOR_RUNNING__', \true); \define('__RECTOR_RUNNING__', \true);
// Require Composer autoload.php // Require Composer autoload.php
$autoloadIncluder = new \RectorPrefix20211122\AutoloadIncluder(); $autoloadIncluder = new \RectorPrefix20211123\AutoloadIncluder();
$autoloadIncluder->includeDependencyOrRepositoryVendorAutoloadIfExists(); $autoloadIncluder->includeDependencyOrRepositoryVendorAutoloadIfExists();
if (\file_exists(__DIR__ . '/../preload.php') && \is_dir(__DIR__ . '/../vendor')) { if (\file_exists(__DIR__ . '/../preload.php') && \is_dir(__DIR__ . '/../vendor')) {
require_once __DIR__ . '/../preload.php'; require_once __DIR__ . '/../preload.php';
@ -38,18 +38,18 @@ try {
$container = $rectorContainerFactory->createFromBootstrapConfigs($bootstrapConfigs); $container = $rectorContainerFactory->createFromBootstrapConfigs($bootstrapConfigs);
} catch (\Throwable $throwable) { } catch (\Throwable $throwable) {
// for json output // for json output
$argvInput = new \RectorPrefix20211122\Symfony\Component\Console\Input\ArgvInput(); $argvInput = new \RectorPrefix20211123\Symfony\Component\Console\Input\ArgvInput();
$outputFormat = $argvInput->getParameterOption('--' . \Rector\Core\Configuration\Option::OUTPUT_FORMAT); $outputFormat = $argvInput->getParameterOption('--' . \Rector\Core\Configuration\Option::OUTPUT_FORMAT);
// report fatal error in json format // report fatal error in json format
if ($outputFormat === \Rector\ChangesReporting\Output\JsonOutputFormatter::NAME) { if ($outputFormat === \Rector\ChangesReporting\Output\JsonOutputFormatter::NAME) {
echo \RectorPrefix20211122\Nette\Utils\Json::encode(['fatal_errors' => [$throwable->getMessage()]]); echo \RectorPrefix20211123\Nette\Utils\Json::encode(['fatal_errors' => [$throwable->getMessage()]]);
} else { } else {
// report fatal errors in console format // report fatal errors in console format
$symfonyStyleFactory = new \Rector\Core\Console\Style\SymfonyStyleFactory(new \RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesCaller()); $symfonyStyleFactory = new \Rector\Core\Console\Style\SymfonyStyleFactory(new \RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesCaller());
$symfonyStyle = $symfonyStyleFactory->create(); $symfonyStyle = $symfonyStyleFactory->create();
$symfonyStyle->error($throwable->getMessage()); $symfonyStyle->error($throwable->getMessage());
} }
exit(\RectorPrefix20211122\Symfony\Component\Console\Command\Command::FAILURE); exit(\RectorPrefix20211123\Symfony\Component\Console\Command\Command::FAILURE);
} }
/** @var ConsoleApplication $application */ /** @var ConsoleApplication $application */
$application = $container->get(\Rector\Core\Console\ConsoleApplication::class); $application = $container->get(\Rector\Core\Console\ConsoleApplication::class);
@ -103,4 +103,4 @@ final class AutoloadIncluder
require_once $filePath; require_once $filePath;
} }
} }
\class_alias('RectorPrefix20211122\\AutoloadIncluder', 'AutoloadIncluder', \false); \class_alias('RectorPrefix20211123\\AutoloadIncluder', 'AutoloadIncluder', \false);

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Bootstrap\ExtensionConfigResolver; use Rector\Core\Bootstrap\ExtensionConfigResolver;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Caching\ValueObject\Storage\MemoryCacheStorage; use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
@ -14,6 +14,8 @@ return static function (\Symfony\Component\DependencyInjection\Loader\Configurat
$parameters->set(\Rector\Core\Configuration\Option::AUTOLOAD_PATHS, []); $parameters->set(\Rector\Core\Configuration\Option::AUTOLOAD_PATHS, []);
// these files will be executed, useful e.g. for constant definitions // these files will be executed, useful e.g. for constant definitions
$parameters->set(\Rector\Core\Configuration\Option::BOOTSTRAP_FILES, []); $parameters->set(\Rector\Core\Configuration\Option::BOOTSTRAP_FILES, []);
// parallel
$parameters->set(\Rector\Core\Configuration\Option::PARALLEL, \false);
// FQN class importing // FQN class importing
$parameters->set(\Rector\Core\Configuration\Option::AUTO_IMPORT_NAMES, \false); $parameters->set(\Rector\Core\Configuration\Option::AUTO_IMPORT_NAMES, \false);
$parameters->set(\Rector\Core\Configuration\Option::IMPORT_SHORT_CLASSES, \true); $parameters->set(\Rector\Core\Configuration\Option::IMPORT_SHORT_CLASSES, \true);

View File

@ -1,9 +1,10 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use RectorPrefix20211123\Symplify\PackageBuilder\Yaml\ParametersMerger;
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void { return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$services = $containerConfigurator->services(); $services = $containerConfigurator->services();
$services->defaults()->public()->autowire()->autoconfigure(); $services->defaults()->public()->autowire()->autoconfigure();
@ -18,4 +19,6 @@ return static function (\Symfony\Component\DependencyInjection\Loader\Configurat
__DIR__ . '/../packages/NodeTypeResolver/Reflection/BetterReflection/RectorBetterReflectionSourceLocatorFactory.php', __DIR__ . '/../packages/NodeTypeResolver/Reflection/BetterReflection/RectorBetterReflectionSourceLocatorFactory.php',
__DIR__ . '/../packages/NodeTypeResolver/Reflection/BetterReflection/SourceLocatorProvider/DynamicSourceLocatorProvider.php', __DIR__ . '/../packages/NodeTypeResolver/Reflection/BetterReflection/SourceLocatorProvider/DynamicSourceLocatorProvider.php',
]); ]);
// parallel
$services->set(\RectorPrefix20211123\Symplify\PackageBuilder\Yaml\ParametersMerger::class);
}; };

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\PSR4\Composer\PSR4NamespaceMatcher; use Rector\PSR4\Composer\PSR4NamespaceMatcher;

View File

@ -1,14 +1,14 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use RectorPrefix20211122\Composer\Semver\VersionParser; use RectorPrefix20211123\Composer\Semver\VersionParser;
use RectorPrefix20211122\Doctrine\Inflector\Inflector; use RectorPrefix20211123\Doctrine\Inflector\Inflector;
use RectorPrefix20211122\Doctrine\Inflector\Rules\English\InflectorFactory; use RectorPrefix20211123\Doctrine\Inflector\Rules\English\InflectorFactory;
use RectorPrefix20211122\Ergebnis\Json\Printer\Printer; use RectorPrefix20211123\Ergebnis\Json\Printer\Printer;
use RectorPrefix20211122\Ergebnis\Json\Printer\PrinterInterface; use RectorPrefix20211123\Ergebnis\Json\Printer\PrinterInterface;
use RectorPrefix20211122\Idiosyncratic\EditorConfig\EditorConfig; use RectorPrefix20211123\Idiosyncratic\EditorConfig\EditorConfig;
use PhpParser\BuilderFactory; use PhpParser\BuilderFactory;
use PhpParser\Lexer; use PhpParser\Lexer;
use PhpParser\NodeFinder; use PhpParser\NodeFinder;
@ -32,70 +32,70 @@ use Rector\Core\Console\ConsoleApplication;
use Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory; use Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory;
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator; use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator;
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider; use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider;
use RectorPrefix20211122\Symfony\Component\Console\Application; use RectorPrefix20211123\Symfony\Component\Console\Application;
use RectorPrefix20211122\Symfony\Component\Console\Style\SymfonyStyle; use RectorPrefix20211123\Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use function RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service; use function RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service;
use RectorPrefix20211122\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser; use RectorPrefix20211123\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
use RectorPrefix20211122\Symplify\PackageBuilder\Console\Command\CommandNaming; use RectorPrefix20211123\Symplify\PackageBuilder\Console\Command\CommandNaming;
use RectorPrefix20211122\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory; use RectorPrefix20211123\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory;
use RectorPrefix20211122\Symplify\PackageBuilder\Parameter\ParameterProvider; use RectorPrefix20211123\Symplify\PackageBuilder\Parameter\ParameterProvider;
use RectorPrefix20211122\Symplify\PackageBuilder\Php\TypeChecker; use RectorPrefix20211123\Symplify\PackageBuilder\Php\TypeChecker;
use RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesAccessor; use RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
use RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesCaller; use RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesCaller;
use RectorPrefix20211122\Symplify\PackageBuilder\Strings\StringFormatConverter; use RectorPrefix20211123\Symplify\PackageBuilder\Strings\StringFormatConverter;
use RectorPrefix20211122\Symplify\SmartFileSystem\FileSystemFilter; use RectorPrefix20211123\Symplify\SmartFileSystem\FileSystemFilter;
use RectorPrefix20211122\Symplify\SmartFileSystem\FileSystemGuard; use RectorPrefix20211123\Symplify\SmartFileSystem\FileSystemGuard;
use RectorPrefix20211122\Symplify\SmartFileSystem\Finder\FinderSanitizer; use RectorPrefix20211123\Symplify\SmartFileSystem\Finder\FinderSanitizer;
use RectorPrefix20211122\Symplify\SmartFileSystem\Json\JsonFileSystem; use RectorPrefix20211123\Symplify\SmartFileSystem\Json\JsonFileSystem;
use RectorPrefix20211122\Symplify\SmartFileSystem\SmartFileSystem; use RectorPrefix20211123\Symplify\SmartFileSystem\SmartFileSystem;
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void { return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$services = $containerConfigurator->services(); $services = $containerConfigurator->services();
$services->defaults()->public()->autowire()->autoconfigure(); $services->defaults()->public()->autowire()->autoconfigure();
$services->load('Rector\\Core\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Rector', __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', __DIR__ . '/../src/PhpParser/NodeVisitor/CreatedByRuleNodeVisitor.php']); $services->load('Rector\\Core\\', __DIR__ . '/../src')->exclude([__DIR__ . '/../src/Rector', __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', __DIR__ . '/../src/PhpParser/NodeVisitor/CreatedByRuleNodeVisitor.php']);
$services->alias(\RectorPrefix20211122\Symfony\Component\Console\Application::class, \Rector\Core\Console\ConsoleApplication::class); $services->alias(\RectorPrefix20211123\Symfony\Component\Console\Application::class, \Rector\Core\Console\ConsoleApplication::class);
$services->set(\RectorPrefix20211122\Symplify\SmartFileSystem\FileSystemGuard::class); $services->set(\RectorPrefix20211123\Symplify\SmartFileSystem\FileSystemGuard::class);
$services->set(\RectorPrefix20211122\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser::class); $services->set(\RectorPrefix20211123\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser::class);
$services->set(\PhpParser\ParserFactory::class); $services->set(\PhpParser\ParserFactory::class);
$services->set(\PhpParser\BuilderFactory::class); $services->set(\PhpParser\BuilderFactory::class);
$services->set(\PhpParser\NodeVisitor\CloningVisitor::class); $services->set(\PhpParser\NodeVisitor\CloningVisitor::class);
$services->set(\PhpParser\NodeFinder::class); $services->set(\PhpParser\NodeFinder::class);
$services->set(\PHPStan\Parser\Parser::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createPHPStanParser']); $services->set(\PHPStan\Parser\Parser::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createPHPStanParser']);
$services->set(\PhpParser\Lexer::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createEmulativeLexer']); $services->set(\PhpParser\Lexer::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createEmulativeLexer']);
// symplify/package-builder // symplify/package-builder
$services->set(\RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesAccessor::class); $services->set(\RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesAccessor::class);
$services->set(\RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesCaller::class); $services->set(\RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesCaller::class);
$services->set(\RectorPrefix20211122\Symplify\SmartFileSystem\Finder\FinderSanitizer::class); $services->set(\RectorPrefix20211123\Symplify\SmartFileSystem\Finder\FinderSanitizer::class);
$services->set(\RectorPrefix20211122\Symplify\SmartFileSystem\FileSystemFilter::class); $services->set(\RectorPrefix20211123\Symplify\SmartFileSystem\FileSystemFilter::class);
$services->set(\RectorPrefix20211122\Symplify\PackageBuilder\Parameter\ParameterProvider::class)->arg('$container', \RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container')); $services->set(\RectorPrefix20211123\Symplify\PackageBuilder\Parameter\ParameterProvider::class)->arg('$container', \RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
$services->set(\RectorPrefix20211122\Symplify\PackageBuilder\Console\Command\CommandNaming::class); $services->set(\RectorPrefix20211123\Symplify\PackageBuilder\Console\Command\CommandNaming::class);
$services->set(\RectorPrefix20211122\Symplify\SmartFileSystem\SmartFileSystem::class); $services->set(\RectorPrefix20211123\Symplify\SmartFileSystem\SmartFileSystem::class);
$services->set(\RectorPrefix20211122\Symplify\PackageBuilder\Strings\StringFormatConverter::class); $services->set(\RectorPrefix20211123\Symplify\PackageBuilder\Strings\StringFormatConverter::class);
$services->set(\RectorPrefix20211122\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory::class); $services->set(\RectorPrefix20211123\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory::class);
$services->set(\RectorPrefix20211122\Symfony\Component\Console\Style\SymfonyStyle::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20211122\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory::class), 'create']); $services->set(\RectorPrefix20211123\Symfony\Component\Console\Style\SymfonyStyle::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20211123\Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory::class), 'create']);
$services->set(\RectorPrefix20211122\Symplify\SmartFileSystem\Json\JsonFileSystem::class); $services->set(\RectorPrefix20211123\Symplify\SmartFileSystem\Json\JsonFileSystem::class);
$services->set(\PhpParser\NodeVisitor\NodeConnectingVisitor::class); $services->set(\PhpParser\NodeVisitor\NodeConnectingVisitor::class);
$services->set(\RectorPrefix20211122\Doctrine\Inflector\Rules\English\InflectorFactory::class); $services->set(\RectorPrefix20211123\Doctrine\Inflector\Rules\English\InflectorFactory::class);
$services->set(\RectorPrefix20211122\Doctrine\Inflector\Inflector::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20211122\Doctrine\Inflector\Rules\English\InflectorFactory::class), 'build']); $services->set(\RectorPrefix20211123\Doctrine\Inflector\Inflector::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20211123\Doctrine\Inflector\Rules\English\InflectorFactory::class), 'build']);
$services->set(\RectorPrefix20211122\Composer\Semver\VersionParser::class); $services->set(\RectorPrefix20211123\Composer\Semver\VersionParser::class);
$services->set(\RectorPrefix20211122\Symplify\PackageBuilder\Php\TypeChecker::class); $services->set(\RectorPrefix20211123\Symplify\PackageBuilder\Php\TypeChecker::class);
// phpdoc parser // phpdoc parser
$services->set(\PHPStan\PhpDocParser\Lexer\Lexer::class); $services->set(\PHPStan\PhpDocParser\Lexer\Lexer::class);
$services->alias(\PHPStan\PhpDocParser\Parser\PhpDocParser::class, \Rector\BetterPhpDocParser\PhpDocParser\BetterPhpDocParser::class); $services->alias(\PHPStan\PhpDocParser\Parser\PhpDocParser::class, \Rector\BetterPhpDocParser\PhpDocParser\BetterPhpDocParser::class);
// cache // cache
$services->set(\PHPStan\Dependency\DependencyResolver::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDependencyResolver']); $services->set(\PHPStan\Dependency\DependencyResolver::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDependencyResolver']);
$services->set(\PHPStan\File\FileHelper::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createFileHelper']); $services->set(\PHPStan\File\FileHelper::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createFileHelper']);
$services->set(\Rector\Caching\Cache::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\Caching\CacheFactory::class), 'create']); $services->set(\Rector\Caching\Cache::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\Caching\CacheFactory::class), 'create']);
// type resolving // type resolving
$services->set(\Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator::class); $services->set(\Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator::class);
$services->alias(\PHPStan\PhpDocParser\Parser\TypeParser::class, \Rector\BetterPhpDocParser\PhpDocParser\BetterTypeParser::class); $services->alias(\PHPStan\PhpDocParser\Parser\TypeParser::class, \Rector\BetterPhpDocParser\PhpDocParser\BetterTypeParser::class);
// PHPStan services // PHPStan services
$services->set(\PHPStan\Reflection\ReflectionProvider::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createReflectionProvider']); $services->set(\PHPStan\Reflection\ReflectionProvider::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createReflectionProvider']);
$services->set(\PHPStan\Analyser\NodeScopeResolver::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createNodeScopeResolver']); $services->set(\PHPStan\Analyser\NodeScopeResolver::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createNodeScopeResolver']);
$services->set(\PHPStan\Analyser\ScopeFactory::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createScopeFactory']); $services->set(\PHPStan\Analyser\ScopeFactory::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createScopeFactory']);
$services->set(\PHPStan\PhpDoc\TypeNodeResolver::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createTypeNodeResolver']); $services->set(\PHPStan\PhpDoc\TypeNodeResolver::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createTypeNodeResolver']);
$services->set(\Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider::class)->factory([\RectorPrefix20211122\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDynamicSourceLocatorProvider']); $services->set(\Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider::class)->factory([\RectorPrefix20211123\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDynamicSourceLocatorProvider']);
$services->set(\RectorPrefix20211122\Ergebnis\Json\Printer\Printer::class); $services->set(\RectorPrefix20211123\Ergebnis\Json\Printer\Printer::class);
$services->alias(\RectorPrefix20211122\Ergebnis\Json\Printer\PrinterInterface::class, \RectorPrefix20211122\Ergebnis\Json\Printer\Printer::class); $services->alias(\RectorPrefix20211123\Ergebnis\Json\Printer\PrinterInterface::class, \RectorPrefix20211123\Ergebnis\Json\Printer\Printer::class);
$services->set(\RectorPrefix20211122\Idiosyncratic\EditorConfig\EditorConfig::class); $services->set(\RectorPrefix20211123\Idiosyncratic\EditorConfig\EditorConfig::class);
}; };

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\DependencyInjection\Rector\Class_\ActionInjectionToConstructorInjectionRector; use Rector\DependencyInjection\Rector\Class_\ActionInjectionToConstructorInjectionRector;
use Rector\DependencyInjection\Rector\Variable\ReplaceVariableByPropertyFetchRector; use Rector\DependencyInjection\Rector\Variable\ReplaceVariableByPropertyFetchRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Carbon\Rector\MethodCall\ChangeCarbonSingularMethodCallToPluralRector; use Rector\Carbon\Rector\MethodCall\ChangeCarbonSingularMethodCallToPluralRector;
use Rector\Carbon\Rector\MethodCall\ChangeDiffForHumansArgsRector; use Rector\Carbon\Rector\MethodCall\ChangeDiffForHumansArgsRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector; use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\CodeQuality\Rector\Array_\ArrayThisCallToThisMethodCallRector; use Rector\CodeQuality\Rector\Array_\ArrayThisCallToThisMethodCallRector;
use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector; use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\CodingStyle\Rector\MethodCall\UseMessageVariableForSprintfInSymfonyStyleRector; use Rector\CodingStyle\Rector\MethodCall\UseMessageVariableForSprintfInSymfonyStyleRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\CodingStyle\Rector\Assign\ManualJsonStringToJsonEncodeArrayRector; use Rector\CodingStyle\Rector\Assign\ManualJsonStringToJsonEncodeArrayRector;
use Rector\CodingStyle\Rector\Assign\PHPStormVarAnnotationRector; use Rector\CodingStyle\Rector\Assign\PHPStormVarAnnotationRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector; use Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector;
use Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector; use Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
// @see https://ocramius.github.io/blog/fluent-interfaces-are-evil/ // @see https://ocramius.github.io/blog/fluent-interfaces-are-evil/

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,19 +1,21 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;
use Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector; use Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector;
use Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialAssignmentOperatorRector; use Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialAssignmentOperatorRector;
use Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialOperatorRector; use Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialOperatorRector;
use Rector\DowngradePhp56\Rector\Use_\DowngradeUseFunctionRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void { return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$parameters = $containerConfigurator->parameters(); $parameters = $containerConfigurator->parameters();
$parameters->set(\Rector\Core\Configuration\Option::PHP_VERSION_FEATURES, \Rector\Core\ValueObject\PhpVersion::PHP_55); $parameters->set(\Rector\Core\Configuration\Option::PHP_VERSION_FEATURES, \Rector\Core\ValueObject\PhpVersion::PHP_55);
$services = $containerConfigurator->services(); $services = $containerConfigurator->services();
$services->set(\Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector::class); $services->set(\Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector::class);
$services->set(\Rector\DowngradePhp56\Rector\Use_\DowngradeUseFunctionRector::class);
$services->set(\Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialAssignmentOperatorRector::class); $services->set(\Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialAssignmentOperatorRector::class);
$services->set(\Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialOperatorRector::class); $services->set(\Rector\DowngradePhp56\Rector\Pow\DowngradeExponentialOperatorRector::class);
}; };

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
use Rector\EarlyReturn\Rector\Foreach_\ReturnAfterToEarlyOnBreakRector; use Rector\EarlyReturn\Rector\Foreach_\ReturnAfterToEarlyOnBreakRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename; use Rector\Renaming\ValueObject\MethodCallRename;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Symfony\Rector\ClassMethod\RemoveServiceFromSensioRouteRector; use Rector\Symfony\Rector\ClassMethod\RemoveServiceFromSensioRouteRector;
use Rector\Symfony\Rector\ClassMethod\ReplaceSensioRouteAnnotationWithSymfonyRector; use Rector\Symfony\Rector\ClassMethod\ReplaceSensioRouteAnnotationWithSymfonyRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Symfony\Rector\ClassMethod\TemplateAnnotationToThisRenderRector; use Rector\Symfony\Rector\ClassMethod\TemplateAnnotationToThisRenderRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\Rector\Name\RenameClassRector; use Rector\Renaming\Rector\Name\RenameClassRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename; use Rector\Renaming\ValueObject\MethodCallRename;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use PHPStan\Type\ObjectWithoutClassType; use PHPStan\Type\ObjectWithoutClassType;
use PHPStan\Type\StringType; use PHPStan\Type\StringType;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeLevelSetList;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Set\ValueObject\DowngradeSetList; use Rector\Set\ValueObject\DowngradeSetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Core\Configuration\Option; use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion; use Rector\Core\ValueObject\PhpVersion;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename; use Rector\Renaming\ValueObject\MethodCallRename;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Arguments\Rector\FuncCall\SwapFuncCallArgumentsRector; use Rector\Arguments\Rector\FuncCall\SwapFuncCallArgumentsRector;
use Rector\Arguments\ValueObject\SwapFuncCallArguments; use Rector\Arguments\ValueObject\SwapFuncCallArguments;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector; use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector;
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector; use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Order\Rector\Class_\OrderPrivateMethodsByUseRector; use Rector\Order\Rector\Class_\OrderPrivateMethodsByUseRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Renaming\Rector\ConstFetch\RenameConstantRector; use Rector\Renaming\Rector\ConstFetch\RenameConstantRector;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\MethodCall\RenameMethodRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php52\Rector\Property\VarToPublicPropertyRector; use Rector\Php52\Rector\Property\VarToPublicPropertyRector;
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector; use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector; use Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector;
use Rector\Php53\Rector\Ternary\TernaryToElvisRector; use Rector\Php53\Rector\Ternary\TernaryToElvisRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php54\Rector\Break_\RemoveZeroBreakContinueRector; use Rector\Php54\Rector\Break_\RemoveZeroBreakContinueRector;
use Rector\Php54\Rector\FuncCall\RemoveReferenceFromCallRector; use Rector\Php54\Rector\FuncCall\RemoveReferenceFromCallRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector; use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector;
use Rector\Php55\Rector\FuncCall\PregReplaceEModifierRector; use Rector\Php55\Rector\FuncCall\PregReplaceEModifierRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php56\Rector\FuncCall\PowToExpRector; use Rector\Php56\Rector\FuncCall\PowToExpRector;
use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector; use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php70\Rector\Assign\ListSplitStringRector; use Rector\Php70\Rector\Assign\ListSplitStringRector;
use Rector\Php70\Rector\Assign\ListSwapArrayOrderRector; use Rector\Php70\Rector\Assign\ListSwapArrayOrderRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php71\Rector\Assign\AssignArrayToStringRector; use Rector\Php71\Rector\Assign\AssignArrayToStringRector;
use Rector\Php71\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector; use Rector\Php71\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php72\Rector\Assign\ListEachRector; use Rector\Php72\Rector\Assign\ListEachRector;
use Rector\Php72\Rector\Assign\ReplaceEachAssignmentWithKeyCurrentRector; use Rector\Php72\Rector\Assign\ReplaceEachAssignmentWithKeyCurrentRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector; use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;
use Rector\Php73\Rector\BooleanOr\IsCountableRector; use Rector\Php73\Rector\BooleanOr\IsCountableRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector; use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector;
use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector; use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector; use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector;
use Rector\Arguments\Rector\FuncCall\FunctionArgumentDefaultValueReplacerRector; use Rector\Arguments\Rector\FuncCall\FunctionArgumentDefaultValueReplacerRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector; use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector;
use Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector; use Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\PhpSpecToPHPUnit\Rector\Class_\AddMockPropertiesRector; use Rector\PhpSpecToPHPUnit\Rector\Class_\AddMockPropertiesRector;
use Rector\PhpSpecToPHPUnit\Rector\Class_\PhpSpecClassToPHPUnitClassRector; use Rector\PhpSpecToPHPUnit\Rector\Class_\PhpSpecClassToPHPUnitClassRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\Rector\Name\RenameClassRector; use Rector\Renaming\Rector\Name\RenameClassRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use PHPStan\Type\ArrayType; use PHPStan\Type\ArrayType;
use PHPStan\Type\MixedType; use PHPStan\Type\MixedType;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Privatization\Rector\Class_\ChangeLocalPropertyToVariableRector; use Rector\Privatization\Rector\Class_\ChangeLocalPropertyToVariableRector;
use Rector\Privatization\Rector\Class_\ChangeReadOnlyVariableWithDefaultValueToConstantRector; use Rector\Privatization\Rector\Class_\ChangeReadOnlyVariableWithDefaultValueToConstantRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector; use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
use Rector\PSR4\Rector\Namespace_\MultipleClassFileToPsr4ClassesRector; use Rector\PSR4\Rector\Namespace_\MultipleClassFileToPsr4ClassesRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\Renaming\Rector\FuncCall\RenameFunctionRector; use Rector\Renaming\Rector\FuncCall\RenameFunctionRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector;
use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector;

View File

@ -1,7 +1,7 @@
<?php <?php
declare (strict_types=1); declare (strict_types=1);
namespace RectorPrefix20211122; namespace RectorPrefix20211123;
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfFunctionExistsRector; use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfFunctionExistsRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

View File

@ -6,14 +6,14 @@ namespace Rector\BetterPhpDocParser\Comment;
use PhpParser\Comment; use PhpParser\Comment;
use PhpParser\Node; use PhpParser\Node;
use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\NodeTypeResolver\Node\AttributeKey;
use RectorPrefix20211122\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser; use RectorPrefix20211123\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
final class CommentsMerger final class CommentsMerger
{ {
/** /**
* @var \Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser * @var \Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser
*/ */
private $simpleCallableNodeTraverser; private $simpleCallableNodeTraverser;
public function __construct(\RectorPrefix20211122\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser $simpleCallableNodeTraverser) public function __construct(\RectorPrefix20211123\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser $simpleCallableNodeTraverser)
{ {
$this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser; $this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser;
} }

View File

@ -3,7 +3,7 @@
declare (strict_types=1); declare (strict_types=1);
namespace Rector\BetterPhpDocParser\Contract; namespace Rector\BetterPhpDocParser\Contract;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface; use RectorPrefix20211123\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface;
interface BasePhpDocNodeVisitorInterface extends \RectorPrefix20211122\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface interface BasePhpDocNodeVisitorInterface extends \RectorPrefix20211123\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface
{ {
} }

View File

@ -27,7 +27,7 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
use Rector\ChangesReporting\Collector\RectorChangeCollector; use Rector\ChangesReporting\Collector\RectorChangeCollector;
use Rector\Core\Configuration\CurrentNodeProvider; use Rector\Core\Configuration\CurrentNodeProvider;
use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\StaticTypeMapper\StaticTypeMapper;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
/** /**
* @template TNode as \PHPStan\PhpDocParser\Ast\Node * @template TNode as \PHPStan\PhpDocParser\Ast\Node
* @see \Rector\Tests\BetterPhpDocParser\PhpDocInfo\PhpDocInfo\PhpDocInfoTest * @see \Rector\Tests\BetterPhpDocParser\PhpDocInfo\PhpDocInfo\PhpDocInfoTest
@ -287,20 +287,20 @@ final class PhpDocInfo
*/ */
public function removeByType(string $typeToRemove) : void public function removeByType(string $typeToRemove) : void
{ {
$phpDocNodeTraverser = new \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser(); $phpDocNodeTraverser = new \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$phpDocNodeTraverser->traverseWithCallable($this->phpDocNode, '', function (\PHPStan\PhpDocParser\Ast\Node $node) use($typeToRemove) : ?int { $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)) { if ($node instanceof \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode && \is_a($node->value, $typeToRemove, \true)) {
if ($typeToRemove === \PHPStan\PhpDocParser\Ast\PhpDoc\VarTagValueNode::class && $node->name !== '@var') { if ($typeToRemove === \PHPStan\PhpDocParser\Ast\PhpDoc\VarTagValueNode::class && $node->name !== '@var') {
return null; return null;
} }
$this->markAsChanged(); $this->markAsChanged();
return \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE; return \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
} }
if (!\is_a($node, $typeToRemove, \true)) { if (!\is_a($node, $typeToRemove, \true)) {
return null; return null;
} }
$this->markAsChanged(); $this->markAsChanged();
return \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE; return \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
}); });
} }
/** /**
@ -411,7 +411,7 @@ final class PhpDocInfo
return \true; return \true;
} }
// has a single node with missing start_end // has a single node with missing start_end
$phpDocNodeTraverser = new \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser(); $phpDocNodeTraverser = new \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$changedPhpDocNodeVisitor = new \Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor(); $changedPhpDocNodeVisitor = new \Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor();
$phpDocNodeTraverser->addPhpDocNodeVisitor($changedPhpDocNodeVisitor); $phpDocNodeTraverser->addPhpDocNodeVisitor($changedPhpDocNodeVisitor);
$phpDocNodeTraverser->traverse($this->phpDocNode); $phpDocNodeTraverser->traverse($this->phpDocNode);

View File

@ -6,7 +6,7 @@ namespace Rector\BetterPhpDocParser\PhpDocInfo;
use PHPStan\PhpDocParser\Lexer\Lexer; use PHPStan\PhpDocParser\Lexer\Lexer;
use PHPStan\PhpDocParser\Parser\TokenIterator; use PHPStan\PhpDocParser\Parser\TokenIterator;
use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator; use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
use RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesAccessor; use RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
final class TokenIteratorFactory final class TokenIteratorFactory
{ {
/** /**
@ -21,7 +21,7 @@ final class TokenIteratorFactory
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor * @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
*/ */
private $privatesAccessor; private $privatesAccessor;
public function __construct(\PHPStan\PhpDocParser\Lexer\Lexer $lexer, \RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor) public function __construct(\PHPStan\PhpDocParser\Lexer\Lexer $lexer, \RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor)
{ {
$this->lexer = $lexer; $this->lexer = $lexer;
$this->privatesAccessor = $privatesAccessor; $this->privatesAccessor = $privatesAccessor;

View File

@ -3,7 +3,7 @@
declare (strict_types=1); declare (strict_types=1);
namespace Rector\BetterPhpDocParser\PhpDocManipulator; namespace Rector\BetterPhpDocParser\PhpDocManipulator;
use RectorPrefix20211122\Nette\Utils\Strings; use RectorPrefix20211123\Nette\Utils\Strings;
use PhpParser\Node; use PhpParser\Node;
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode; use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
@ -81,7 +81,7 @@ final class PhpDocClassRenamer
$doctrineAnnotationTagValueNode->changeSilentValue($newClass); $doctrineAnnotationTagValueNode->changeSilentValue($newClass);
continue; continue;
} }
$newContent = \RectorPrefix20211122\Nette\Utils\Strings::replace($className, '#\\b' . \preg_quote($oldClass, '#') . '\\b#', $newClass); $newContent = \RectorPrefix20211123\Nette\Utils\Strings::replace($className, '#\\b' . \preg_quote($oldClass, '#') . '\\b#', $newClass);
if ($newContent === $className) { if ($newContent === $className) {
continue; continue;
} }

View File

@ -7,7 +7,7 @@ use PHPStan\PhpDocParser\Ast\Node;
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode; use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode; use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
final class PhpDocTagRemover final class PhpDocTagRemover
{ {
public function removeByName(\Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo $phpDocInfo, string $name) : void 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 public function removeTagValueFromNode(\Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo $phpDocInfo, \PHPStan\PhpDocParser\Ast\Node $desiredNode) : void
{ {
$phpDocNode = $phpDocInfo->getPhpDocNode(); $phpDocNode = $phpDocInfo->getPhpDocNode();
$phpDocNodeTraverser = new \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser(); $phpDocNodeTraverser = new \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function ($node) use($desiredNode, $phpDocInfo) : ?int { $phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function ($node) use($desiredNode, $phpDocInfo) : ?int {
if ($node instanceof \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode && $node->value === $desiredNode) { if ($node instanceof \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode && $node->value === $desiredNode) {
$phpDocInfo->markAsChanged(); $phpDocInfo->markAsChanged();
return \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE; return \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
} }
if ($node !== $desiredNode) { if ($node !== $desiredNode) {
return null; return null;
} }
$phpDocInfo->markAsChanged(); $phpDocInfo->markAsChanged();
return \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE; return \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
}); });
} }
private function areAnnotationNamesEqual(string $firstAnnotationName, string $secondAnnotationName) : bool private function areAnnotationNamesEqual(string $firstAnnotationName, string $secondAnnotationName) : bool

View File

@ -5,7 +5,7 @@ namespace Rector\BetterPhpDocParser\PhpDocNodeFinder;
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode; use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode;
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode; use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
/** /**
* @template TNode as \PHPStan\PhpDocParser\Ast\Node * @template TNode as \PHPStan\PhpDocParser\Ast\Node
*/ */
@ -17,7 +17,7 @@ final class PhpDocNodeByTypeFinder
*/ */
public function findByType(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $phpDocNode, string $desiredType) : array public function findByType(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $phpDocNode, string $desiredType) : array
{ {
$phpDocNodeTraverser = new \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser(); $phpDocNodeTraverser = new \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$foundNodes = []; $foundNodes = [];
$phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function ($node) use(&$foundNodes, $desiredType) { $phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function ($node) use(&$foundNodes, $desiredType) {
if (!\is_a($node, $desiredType, \true)) { if (!\is_a($node, $desiredType, \true)) {

View File

@ -7,9 +7,9 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode;
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface; use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
use Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider; use Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider;
use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator; use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor;
/** /**
* @see \Rector\Tests\BetterPhpDocParser\PhpDocNodeMapperTest * @see \Rector\Tests\BetterPhpDocParser\PhpDocNodeMapperTest
*/ */
@ -34,7 +34,7 @@ final class PhpDocNodeMapper
/** /**
* @param BasePhpDocNodeVisitorInterface[] $phpDocNodeVisitors * @param BasePhpDocNodeVisitorInterface[] $phpDocNodeVisitors
*/ */
public function __construct(\Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider $currentTokenIteratorProvider, \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor $parentConnectingPhpDocNodeVisitor, \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor $cloningPhpDocNodeVisitor, array $phpDocNodeVisitors) public function __construct(\Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider $currentTokenIteratorProvider, \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor $parentConnectingPhpDocNodeVisitor, \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor $cloningPhpDocNodeVisitor, array $phpDocNodeVisitors)
{ {
$this->currentTokenIteratorProvider = $currentTokenIteratorProvider; $this->currentTokenIteratorProvider = $currentTokenIteratorProvider;
$this->parentConnectingPhpDocNodeVisitor = $parentConnectingPhpDocNodeVisitor; $this->parentConnectingPhpDocNodeVisitor = $parentConnectingPhpDocNodeVisitor;
@ -44,13 +44,13 @@ final class PhpDocNodeMapper
public function transform(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $phpDocNode, \Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator $betterTokenIterator) : void public function transform(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $phpDocNode, \Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator $betterTokenIterator) : void
{ {
$this->currentTokenIteratorProvider->setBetterTokenIterator($betterTokenIterator); $this->currentTokenIteratorProvider->setBetterTokenIterator($betterTokenIterator);
$parentPhpDocNodeTraverser = new \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser(); $parentPhpDocNodeTraverser = new \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$parentPhpDocNodeTraverser->addPhpDocNodeVisitor($this->parentConnectingPhpDocNodeVisitor); $parentPhpDocNodeTraverser->addPhpDocNodeVisitor($this->parentConnectingPhpDocNodeVisitor);
$parentPhpDocNodeTraverser->traverse($phpDocNode); $parentPhpDocNodeTraverser->traverse($phpDocNode);
$cloningPhpDocNodeTraverser = new \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser(); $cloningPhpDocNodeTraverser = new \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$cloningPhpDocNodeTraverser->addPhpDocNodeVisitor($this->cloningPhpDocNodeVisitor); $cloningPhpDocNodeTraverser->addPhpDocNodeVisitor($this->cloningPhpDocNodeVisitor);
$cloningPhpDocNodeTraverser->traverse($phpDocNode); $cloningPhpDocNodeTraverser->traverse($phpDocNode);
$phpDocNodeTraverser = new \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser(); $phpDocNodeTraverser = new \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
foreach ($this->phpDocNodeVisitors as $phpDocNodeVisitor) { foreach ($this->phpDocNodeVisitors as $phpDocNodeVisitor) {
$phpDocNodeTraverser->addPhpDocNodeVisitor($phpDocNodeVisitor); $phpDocNodeTraverser->addPhpDocNodeVisitor($phpDocNodeVisitor);
} }

View File

@ -4,7 +4,7 @@ declare (strict_types=1);
namespace Rector\BetterPhpDocParser\PhpDocNodeTraverser; namespace Rector\BetterPhpDocParser\PhpDocNodeTraverser;
use Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor; use Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
final class ChangedPhpDocNodeTraverserFactory final class ChangedPhpDocNodeTraverserFactory
{ {
/** /**
@ -15,9 +15,9 @@ final class ChangedPhpDocNodeTraverserFactory
{ {
$this->changedPhpDocNodeVisitor = $changedPhpDocNodeVisitor; $this->changedPhpDocNodeVisitor = $changedPhpDocNodeVisitor;
} }
public function create() : \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser public function create() : \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser
{ {
$changedPhpDocNodeTraverser = new \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeTraverser(); $changedPhpDocNodeTraverser = new \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$changedPhpDocNodeTraverser->addPhpDocNodeVisitor($this->changedPhpDocNodeVisitor); $changedPhpDocNodeTraverser->addPhpDocNodeVisitor($this->changedPhpDocNodeVisitor);
return $changedPhpDocNodeTraverser; return $changedPhpDocNodeTraverser;
} }

View File

@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\ArrayTypeNode;
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer; use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface; use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode; use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class ArrayTypePhpDocNodeVisitor extends \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface final class ArrayTypePhpDocNodeVisitor extends \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{ {
/** /**
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer * @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer

View File

@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\CallableTypeNode;
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer; use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface; use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareCallableTypeNode; use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareCallableTypeNode;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class CallableTypePhpDocNodeVisitor extends \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface final class CallableTypePhpDocNodeVisitor extends \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{ {
/** /**
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer * @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer

View File

@ -5,8 +5,8 @@ namespace Rector\BetterPhpDocParser\PhpDocNodeVisitor;
use PHPStan\PhpDocParser\Ast\Node; use PHPStan\PhpDocParser\Ast\Node;
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey; use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class ChangedPhpDocNodeVisitor extends \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor final class ChangedPhpDocNodeVisitor extends \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
{ {
/** /**
* @var bool * @var bool

View File

@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\IntersectionTypeNode;
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer; use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface; use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareIntersectionTypeNode; use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareIntersectionTypeNode;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class IntersectionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface final class IntersectionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{ {
/** /**
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer * @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer

View File

@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer; use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface; use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
use Rector\BetterPhpDocParser\ValueObject\PhpDoc\VariadicAwareParamTagValueNode; use Rector\BetterPhpDocParser\ValueObject\PhpDoc\VariadicAwareParamTagValueNode;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class ParamPhpDocNodeVisitor extends \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface final class ParamPhpDocNodeVisitor extends \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{ {
/** /**
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer * @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer

View File

@ -14,8 +14,8 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDoc\SpacingAwareTemplateTagValueNod
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey; use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd; use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
use Rector\Core\Exception\ShouldNotHappenException; use Rector\Core\Exception\ShouldNotHappenException;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class TemplatePhpDocNodeVisitor extends \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface final class TemplatePhpDocNodeVisitor extends \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{ {
/** /**
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider * @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider

View File

@ -13,8 +13,8 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey; use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd; use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareUnionTypeNode; use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareUnionTypeNode;
use RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; use RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class UnionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211122\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface final class UnionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211123\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{ {
/** /**
* @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider * @var \Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider

View File

@ -18,7 +18,7 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey; use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd; use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
use Rector\Core\Exception\ShouldNotHappenException; use Rector\Core\Exception\ShouldNotHappenException;
use RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesCaller; use RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesCaller;
/** /**
* @see \Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\TagValueNodeReprintTest * @see \Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\TagValueNodeReprintTest
*/ */
@ -41,7 +41,7 @@ final class BetterPhpDocParser extends \PHPStan\PhpDocParser\Parser\PhpDocParser
$this->tokenIteratorFactory = $tokenIteratorFactory; $this->tokenIteratorFactory = $tokenIteratorFactory;
$this->doctrineAnnotationDecorator = $doctrineAnnotationDecorator; $this->doctrineAnnotationDecorator = $doctrineAnnotationDecorator;
parent::__construct($typeParser, $constExprParser); parent::__construct($typeParser, $constExprParser);
$this->privatesCaller = new \RectorPrefix20211122\Symplify\PackageBuilder\Reflection\PrivatesCaller(); $this->privatesCaller = new \RectorPrefix20211123\Symplify\PackageBuilder\Reflection\PrivatesCaller();
} }
/** /**
* @param \PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator * @param \PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator

View File

@ -3,7 +3,7 @@
declare (strict_types=1); declare (strict_types=1);
namespace Rector\BetterPhpDocParser\PhpDocParser; namespace Rector\BetterPhpDocParser\PhpDocParser;
use RectorPrefix20211122\Nette\Utils\Strings; use RectorPrefix20211123\Nette\Utils\Strings;
use PhpParser\Node; use PhpParser\Node;
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode; use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocChildNode; use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocChildNode;
@ -100,7 +100,7 @@ final class DoctrineAnnotationDecorator
break; break;
} }
$nextPhpDocChildNode = $phpDocNode->children[$key]; $nextPhpDocChildNode = $phpDocNode->children[$key];
if ($nextPhpDocChildNode instanceof \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTextNode && \RectorPrefix20211122\Nette\Utils\Strings::match($nextPhpDocChildNode->text, self::NESTED_ANNOTATION_END_REGEX)) { if ($nextPhpDocChildNode instanceof \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTextNode && \RectorPrefix20211123\Nette\Utils\Strings::match($nextPhpDocChildNode->text, self::NESTED_ANNOTATION_END_REGEX)) {
// @todo how to detect previously opened brackets? // @todo how to detect previously opened brackets?
// probably local property with holding count of opened brackets // probably local property with holding count of opened brackets
$composedContent = $genericTagValueNode->value . \PHP_EOL . $nextPhpDocChildNode->text; $composedContent = $genericTagValueNode->value . \PHP_EOL . $nextPhpDocChildNode->text;
@ -224,7 +224,7 @@ final class DoctrineAnnotationDecorator
} }
private function resolveFqnAnnotationSpacelessPhpDocTagNode(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTextNode $phpDocTextNode) : ?\Rector\BetterPhpDocParser\PhpDoc\SpacelessPhpDocTagNode private function resolveFqnAnnotationSpacelessPhpDocTagNode(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTextNode $phpDocTextNode) : ?\Rector\BetterPhpDocParser\PhpDoc\SpacelessPhpDocTagNode
{ {
$match = \RectorPrefix20211122\Nette\Utils\Strings::match($phpDocTextNode->text, self::LONG_ANNOTATION_REGEX); $match = \RectorPrefix20211123\Nette\Utils\Strings::match($phpDocTextNode->text, self::LONG_ANNOTATION_REGEX);
$fullyQualifiedAnnotationClass = $match['class_name'] ?? null; $fullyQualifiedAnnotationClass = $match['class_name'] ?? null;
if ($fullyQualifiedAnnotationClass === null) { if ($fullyQualifiedAnnotationClass === null) {
return null; return null;

View File

@ -17,7 +17,7 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey; use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
use Rector\Core\Configuration\CurrentNodeProvider; use Rector\Core\Configuration\CurrentNodeProvider;
use Rector\Core\Exception\ShouldNotHappenException; use Rector\Core\Exception\ShouldNotHappenException;
use RectorPrefix20211122\Symfony\Contracts\Service\Attribute\Required; use RectorPrefix20211123\Symfony\Contracts\Service\Attribute\Required;
final class PlainValueParser final class PlainValueParser
{ {
/** /**

Some files were not shown because too many files have changed in this diff Show More