Updated Rector to commit 9c52c9584822c6c4bae5f162a459d79e9f765c91

9c52c95848 [automated] Re-Generate Nodes/Rectors Documentation (#1228)
This commit is contained in:
Tomas Votruba 2021-11-14 00:36:15 +00:00
parent 96796ca64a
commit a16c61358a
3192 changed files with 13827 additions and 13663 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
<?php
declare (strict_types=1);
namespace RectorPrefix20211113;
namespace RectorPrefix20211114;
use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
use Rector\Core\Configuration\Option;

View File

@ -1,7 +1,7 @@
<?php
declare (strict_types=1);
namespace RectorPrefix20211113;
namespace RectorPrefix20211114;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
# 480 Rules Overview
# 489 Rules Overview
<br>
@ -10,7 +10,7 @@
- [Carbon](#carbon) (2)
- [CodeQuality](#codequality) (68)
- [CodeQuality](#codequality) (69)
- [CodingStyle](#codingstyle) (38)
@ -22,11 +22,13 @@
- [DowngradePhp53](#downgradephp53) (1)
- [DowngradePhp54](#downgradephp54) (1)
- [DowngradePhp54](#downgradephp54) (5)
- [DowngradePhp56](#downgradephp56) (2)
- [DowngradePhp55](#downgradephp55) (1)
- [DowngradePhp70](#downgradephp70) (11)
- [DowngradePhp56](#downgradephp56) (3)
- [DowngradePhp70](#downgradephp70) (12)
- [DowngradePhp71](#downgradephp71) (10)
@ -78,7 +80,7 @@
- [Php80](#php80) (17)
- [Php81](#php81) (6)
- [Php81](#php81) (7)
- [PhpSpecToPHPUnit](#phpspectophpunit) (7)
@ -826,6 +828,29 @@ Changes DateTime type-hint to DateTimeInterface
<br>
### DoWhileBreakFalseToIfElseRector
Replace do (...} while (false); with more readable if/else conditions
- class: [`Rector\CodeQuality\Rector\Do_\DoWhileBreakFalseToIfElseRector`](../rules/CodeQuality/Rector/Do_/DoWhileBreakFalseToIfElseRector.php)
```diff
-do {
- if (mt_rand(0, 1)) {
- $value = 5;
- break;
- }
-
+if (mt_rand(0, 1)) {
+ $value = 5;
+} else {
$value = 10;
-} while (false);
+}
```
<br>
### ExplicitBoolCompareRector
Make if conditions more explicit
@ -4031,6 +4056,54 @@ Refactor __DIR__ to dirname(__FILE__)
## DowngradePhp54
### DowngradeBinaryNotationRector
Downgrade binary notation for integers
- class: [`Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector`](../rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php)
```diff
-$a = 0b11111100101;
+$a = 2021;
```
<br>
### DowngradeCallableTypeDeclarationRector
Remove the "callable" param type, add a `@param` tag instead
- class: [`Rector\DowngradePhp54\Rector\FunctionLike\DowngradeCallableTypeDeclarationRector`](../rules/DowngradePhp54/Rector/FunctionLike/DowngradeCallableTypeDeclarationRector.php)
```diff
class SomeClass
{
- public function someFunction(callable $callback)
+ /**
+ * @param callable $callback
+ */
+ public function someFunction($callback)
{
}
}
```
<br>
### DowngradeInstanceMethodCallRector
Downgrade instance and method call/property access
- class: [`Rector\DowngradePhp54\Rector\MethodCall\DowngradeInstanceMethodCallRector`](../rules/DowngradePhp54/Rector/MethodCall/DowngradeInstanceMethodCallRector.php)
```diff
-echo (new \ReflectionClass('\\stdClass'))->getName();
+$object = new \ReflectionClass('\\stdClass');
+echo $object->getName();
```
<br>
### DowngradeStaticClosureRector
Remove static from closure
@ -4052,8 +4125,64 @@ Remove static from closure
<br>
### ShortArrayToLongArrayRector
Replace short arrays by long arrays
- class: [`Rector\DowngradePhp54\Rector\Array_\ShortArrayToLongArrayRector`](../rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php)
```diff
-$a = [1, 2, 3];
+$a = array(1, 2, 3);
```
<br>
## DowngradePhp55
### DowngradeClassConstantToStringRector
Replace <class>::class constant by string class names
- class: [`Rector\DowngradePhp55\Rector\ClassConstFetch\DowngradeClassConstantToStringRector`](../rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php)
```diff
class AnotherClass
{
}
class SomeClass
{
public function run()
{
- return \AnotherClass::class;
+ return 'AnotherClass';
}
}
```
<br>
## DowngradePhp56
### DowngradeArgumentUnpackingRector
Replace argument unpacking by `call_user_func_array()`
- class: [`Rector\DowngradePhp56\Rector\CallLike\DowngradeArgumentUnpackingRector`](../rules/DowngradePhp56/Rector/CallLike/DowngradeArgumentUnpackingRector.php)
```diff
class SomeClass
{
public function run(array $items)
{
- some_function(...$items);
+ call_user_func_array('some_function', $items);
}
}
```
<br>
### DowngradeExponentialAssignmentOperatorRector
Remove exponential assignment operator **=
@ -4129,6 +4258,19 @@ Change array contant definition via define to const
<br>
### DowngradeDirnameLevelsRector
Replace the 2nd argument of `dirname()`
- class: [`Rector\DowngradePhp70\Rector\FuncCall\DowngradeDirnameLevelsRector`](../rules/DowngradePhp70/Rector/FuncCall/DowngradeDirnameLevelsRector.php)
```diff
-return dirname($path, 2);
+return dirname(dirname($path));
```
<br>
### DowngradeGeneratedScalarTypesRector
Refactor scalar types in PHP code in string snippets, e.g. generated container code from symfony/dependency-injection
@ -8071,6 +8213,28 @@ Refactor MyCLabs enum fetch to Enum const
<br>
### NewInInitializerRector
Replace property declaration of new state with direct new
- class: [`Rector\Php81\Rector\ClassMethod\NewInInitializerRector`](../rules/Php81/Rector/ClassMethod/NewInInitializerRector.php)
```diff
class SomeClass
{
- private Logger $logger;
-
public function __construct(
- ?Logger $logger = null,
+ private Logger $logger = new NullLogger,
) {
- $this->logger = $logger ?? new NullLogger;
}
}
```
<br>
### Php81ResourceReturnToObjectRector
Change `is_resource()` to instanceof Object

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@ use PHPStan\PhpDocParser\Ast\Node;
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
final class PhpDocTagRemover
{
public function removeByName(\Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo $phpDocInfo, string $name) : void
@ -33,17 +33,17 @@ final class PhpDocTagRemover
public function removeTagValueFromNode(\Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo $phpDocInfo, \PHPStan\PhpDocParser\Ast\Node $desiredNode) : void
{
$phpDocNode = $phpDocInfo->getPhpDocNode();
$phpDocNodeTraverser = new \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$phpDocNodeTraverser = new \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function ($node) use($desiredNode, $phpDocInfo) : ?int {
if ($node instanceof \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode && $node->value === $desiredNode) {
$phpDocInfo->markAsChanged();
return \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
return \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
}
if ($node !== $desiredNode) {
return null;
}
$phpDocInfo->markAsChanged();
return \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
return \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
});
}
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 Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
/**
* @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
{
$phpDocNodeTraverser = new \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$phpDocNodeTraverser = new \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$foundNodes = [];
$phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function ($node) use(&$foundNodes, $desiredType) {
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\DataProvider\CurrentTokenIteratorProvider;
use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor;
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor;
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor;
/**
* @see \Rector\Tests\BetterPhpDocParser\PhpDocNodeMapperTest
*/
@ -34,7 +34,7 @@ final class PhpDocNodeMapper
/**
* @param BasePhpDocNodeVisitorInterface[] $phpDocNodeVisitors
*/
public function __construct(\Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider $currentTokenIteratorProvider, \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor $parentConnectingPhpDocNodeVisitor, \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor $cloningPhpDocNodeVisitor, array $phpDocNodeVisitors)
public function __construct(\Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider $currentTokenIteratorProvider, \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor $parentConnectingPhpDocNodeVisitor, \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor $cloningPhpDocNodeVisitor, array $phpDocNodeVisitors)
{
$this->currentTokenIteratorProvider = $currentTokenIteratorProvider;
$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
{
$this->currentTokenIteratorProvider->setBetterTokenIterator($betterTokenIterator);
$parentPhpDocNodeTraverser = new \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$parentPhpDocNodeTraverser = new \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$parentPhpDocNodeTraverser->addPhpDocNodeVisitor($this->parentConnectingPhpDocNodeVisitor);
$parentPhpDocNodeTraverser->traverse($phpDocNode);
$cloningPhpDocNodeTraverser = new \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$cloningPhpDocNodeTraverser = new \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$cloningPhpDocNodeTraverser->addPhpDocNodeVisitor($this->cloningPhpDocNodeVisitor);
$cloningPhpDocNodeTraverser->traverse($phpDocNode);
$phpDocNodeTraverser = new \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
$phpDocNodeTraverser = new \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
foreach ($this->phpDocNodeVisitors as $phpDocNodeVisitor) {
$phpDocNodeTraverser->addPhpDocNodeVisitor($phpDocNodeVisitor);
}

View File

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

View File

@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\ArrayTypeNode;
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class ArrayTypePhpDocNodeVisitor extends \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class ArrayTypePhpDocNodeVisitor extends \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{
/**
* @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\Contract\BasePhpDocNodeVisitorInterface;
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareCallableTypeNode;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class CallableTypePhpDocNodeVisitor extends \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class CallableTypePhpDocNodeVisitor extends \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{
/**
* @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer

View File

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

View File

@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\IntersectionTypeNode;
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareIntersectionTypeNode;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class IntersectionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class IntersectionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{
/**
* @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\Contract\BasePhpDocNodeVisitorInterface;
use Rector\BetterPhpDocParser\ValueObject\PhpDoc\VariadicAwareParamTagValueNode;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class ParamPhpDocNodeVisitor extends \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class ParamPhpDocNodeVisitor extends \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{
/**
* @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\StartAndEnd;
use Rector\Core\Exception\ShouldNotHappenException;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class TemplatePhpDocNodeVisitor extends \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class TemplatePhpDocNodeVisitor extends \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{
/**
* @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\StartAndEnd;
use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareUnionTypeNode;
use RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class UnionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211113\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
use RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
final class UnionTypeNodePhpDocNodeVisitor extends \RectorPrefix20211114\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
{
/**
* @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\StartAndEnd;
use Rector\Core\Exception\ShouldNotHappenException;
use RectorPrefix20211113\Symplify\PackageBuilder\Reflection\PrivatesCaller;
use RectorPrefix20211114\Symplify\PackageBuilder\Reflection\PrivatesCaller;
/**
* @see \Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\TagValueNodeReprintTest
*/
@ -41,7 +41,7 @@ final class BetterPhpDocParser extends \PHPStan\PhpDocParser\Parser\PhpDocParser
$this->tokenIteratorFactory = $tokenIteratorFactory;
$this->doctrineAnnotationDecorator = $doctrineAnnotationDecorator;
parent::__construct($typeParser, $constExprParser);
$this->privatesCaller = new \RectorPrefix20211113\Symplify\PackageBuilder\Reflection\PrivatesCaller();
$this->privatesCaller = new \RectorPrefix20211114\Symplify\PackageBuilder\Reflection\PrivatesCaller();
}
/**
* @param \PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator

View File

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

View File

@ -3,7 +3,7 @@
declare (strict_types=1);
namespace Rector\BetterPhpDocParser\Printer;
use RectorPrefix20211113\Nette\Utils\Strings;
use RectorPrefix20211114\Nette\Utils\Strings;
final class DocBlockInliner
{
/**
@ -18,7 +18,7 @@ final class DocBlockInliner
private const NEWLINE_MIDDLE_DOC_REGEX = "#\n \\* #";
public function inline(string $docContent) : string
{
$docContent = \RectorPrefix20211113\Nette\Utils\Strings::replace($docContent, self::NEWLINE_MIDDLE_DOC_REGEX, ' ');
return \RectorPrefix20211113\Nette\Utils\Strings::replace($docContent, self::NEWLINE_CLOSING_DOC_REGEX, ' */');
$docContent = \RectorPrefix20211114\Nette\Utils\Strings::replace($docContent, self::NEWLINE_MIDDLE_DOC_REGEX, ' ');
return \RectorPrefix20211114\Nette\Utils\Strings::replace($docContent, self::NEWLINE_CLOSING_DOC_REGEX, ' */');
}
}

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