mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
Updated Rector to commit 886aad92f97dea6491374e7707913a7ad3f58a54
886aad92f9
[Php81] Skip ReadOnlyPropertyRector on Stmt is not inline with __construct (#1846)
This commit is contained in:
parent
eeb7260539
commit
7241528ca6
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
require_once __DIR__ . '/rector.php';
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use RectorPrefix20220220\Nette\Utils\Json;
|
||||
use RectorPrefix20220221\Nette\Utils\Json;
|
||||
use Rector\ChangesReporting\Output\JsonOutputFormatter;
|
||||
use Rector\Core\Bootstrap\RectorConfigsResolver;
|
||||
use Rector\Core\Configuration\Option;
|
||||
@ -11,9 +11,9 @@ use Rector\Core\Console\ConsoleApplication;
|
||||
use Rector\Core\Console\Style\RectorConsoleOutputStyleFactory;
|
||||
use Rector\Core\DependencyInjection\RectorContainerFactory;
|
||||
use Rector\Core\Kernel\RectorKernel;
|
||||
use RectorPrefix20220220\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix20220220\Symfony\Component\Console\Input\ArgvInput;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
use RectorPrefix20220221\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix20220221\Symfony\Component\Console\Input\ArgvInput;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
// @ intentionally: continue anyway
|
||||
@\ini_set('memory_limit', '-1');
|
||||
// Performance boost
|
||||
@ -22,7 +22,7 @@ use RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
\gc_disable();
|
||||
\define('__RECTOR_RUNNING__', \true);
|
||||
// Require Composer autoload.php
|
||||
$autoloadIncluder = new \RectorPrefix20220220\AutoloadIncluder();
|
||||
$autoloadIncluder = new \RectorPrefix20220221\AutoloadIncluder();
|
||||
$autoloadIncluder->includeDependencyOrRepositoryVendorAutoloadIfExists();
|
||||
if (\file_exists(__DIR__ . '/../preload.php') && \is_dir(__DIR__ . '/../vendor')) {
|
||||
require_once __DIR__ . '/../preload.php';
|
||||
@ -39,18 +39,18 @@ try {
|
||||
$container = $rectorContainerFactory->createFromBootstrapConfigs($bootstrapConfigs);
|
||||
} catch (\Throwable $throwable) {
|
||||
// for json output
|
||||
$argvInput = new \RectorPrefix20220220\Symfony\Component\Console\Input\ArgvInput();
|
||||
$argvInput = new \RectorPrefix20220221\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 \RectorPrefix20220220\Nette\Utils\Json::encode(['fatal_errors' => [$throwable->getMessage()]]);
|
||||
echo \RectorPrefix20220221\Nette\Utils\Json::encode(['fatal_errors' => [$throwable->getMessage()]]);
|
||||
} else {
|
||||
// report fatal errors in console format
|
||||
$rectorConsoleOutputStyleFactory = new \Rector\Core\Console\Style\RectorConsoleOutputStyleFactory(new \RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesCaller());
|
||||
$rectorConsoleOutputStyleFactory = new \Rector\Core\Console\Style\RectorConsoleOutputStyleFactory(new \RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesCaller());
|
||||
$rectorConsoleOutputStyle = $rectorConsoleOutputStyleFactory->create();
|
||||
$rectorConsoleOutputStyle->error($throwable->getMessage());
|
||||
}
|
||||
exit(\RectorPrefix20220220\Symfony\Component\Console\Command\Command::FAILURE);
|
||||
exit(\RectorPrefix20220221\Symfony\Component\Console\Command\Command::FAILURE);
|
||||
}
|
||||
/** @var ConsoleApplication $application */
|
||||
$application = $container->get(\Rector\Core\Console\ConsoleApplication::class);
|
||||
@ -117,4 +117,4 @@ final class AutoloadIncluder
|
||||
require_once $filePath;
|
||||
}
|
||||
}
|
||||
\class_alias('RectorPrefix20220220\\AutoloadIncluder', 'AutoloadIncluder', \false);
|
||||
\class_alias('RectorPrefix20220221\\AutoloadIncluder', 'AutoloadIncluder', \false);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Bootstrap\ExtensionConfigResolver;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
|
||||
use Rector\Core\Configuration\Option;
|
||||
|
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use RectorPrefix20220220\Symplify\EasyParallel\ValueObject\EasyParallelConfig;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Yaml\ParametersMerger;
|
||||
use RectorPrefix20220221\Symplify\EasyParallel\ValueObject\EasyParallelConfig;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Yaml\ParametersMerger;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
// make use of https://github.com/symplify/easy-parallel
|
||||
$containerConfigurator->import(\RectorPrefix20220220\Symplify\EasyParallel\ValueObject\EasyParallelConfig::FILE_PATH);
|
||||
$containerConfigurator->import(\RectorPrefix20220221\Symplify\EasyParallel\ValueObject\EasyParallelConfig::FILE_PATH);
|
||||
$services = $containerConfigurator->services();
|
||||
$services->defaults()->public()->autowire()->autoconfigure();
|
||||
$services->load('Rector\\', __DIR__ . '/../packages')->exclude([
|
||||
@ -23,5 +23,5 @@ return static function (\Symfony\Component\DependencyInjection\Loader\Configurat
|
||||
__DIR__ . '/../packages/NodeTypeResolver/Reflection/BetterReflection/SourceLocatorProvider/DynamicSourceLocatorProvider.php',
|
||||
]);
|
||||
// parallel
|
||||
$services->set(\RectorPrefix20220220\Symplify\PackageBuilder\Yaml\ParametersMerger::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\PackageBuilder\Yaml\ParametersMerger::class);
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\PSR4\Composer\PSR4NamespaceMatcher;
|
||||
use Rector\PSR4\Contract\PSR4AutoloadNamespaceMatcherInterface;
|
||||
|
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use RectorPrefix20220220\Composer\Semver\VersionParser;
|
||||
use RectorPrefix20220220\Doctrine\Inflector\Inflector;
|
||||
use RectorPrefix20220220\Doctrine\Inflector\Rules\English\InflectorFactory;
|
||||
use RectorPrefix20220220\Ergebnis\Json\Printer\Printer;
|
||||
use RectorPrefix20220220\Ergebnis\Json\Printer\PrinterInterface;
|
||||
use RectorPrefix20220220\Idiosyncratic\EditorConfig\EditorConfig;
|
||||
use RectorPrefix20220221\Composer\Semver\VersionParser;
|
||||
use RectorPrefix20220221\Doctrine\Inflector\Inflector;
|
||||
use RectorPrefix20220221\Doctrine\Inflector\Rules\English\InflectorFactory;
|
||||
use RectorPrefix20220221\Ergebnis\Json\Printer\Printer;
|
||||
use RectorPrefix20220221\Ergebnis\Json\Printer\PrinterInterface;
|
||||
use RectorPrefix20220221\Idiosyncratic\EditorConfig\EditorConfig;
|
||||
use PhpParser\BuilderFactory;
|
||||
use PhpParser\Lexer;
|
||||
use PhpParser\NodeFinder;
|
||||
@ -35,68 +35,68 @@ use Rector\Core\Validation\Collector\EmptyConfigurableRectorCollector;
|
||||
use Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory;
|
||||
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator;
|
||||
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider;
|
||||
use RectorPrefix20220220\Symfony\Component\Console\Application;
|
||||
use RectorPrefix20220221\Symfony\Component\Console\Application;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use function RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
||||
use RectorPrefix20220220\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Console\Command\CommandNaming;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Php\TypeChecker;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Strings\StringFormatConverter;
|
||||
use RectorPrefix20220220\Symplify\SmartFileSystem\FileSystemFilter;
|
||||
use RectorPrefix20220220\Symplify\SmartFileSystem\FileSystemGuard;
|
||||
use RectorPrefix20220220\Symplify\SmartFileSystem\Finder\FinderSanitizer;
|
||||
use RectorPrefix20220220\Symplify\SmartFileSystem\Json\JsonFileSystem;
|
||||
use RectorPrefix20220220\Symplify\SmartFileSystem\SmartFileSystem;
|
||||
use function RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
||||
use RectorPrefix20220221\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Console\Command\CommandNaming;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Php\TypeChecker;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Strings\StringFormatConverter;
|
||||
use RectorPrefix20220221\Symplify\SmartFileSystem\FileSystemFilter;
|
||||
use RectorPrefix20220221\Symplify\SmartFileSystem\FileSystemGuard;
|
||||
use RectorPrefix20220221\Symplify\SmartFileSystem\Finder\FinderSanitizer;
|
||||
use RectorPrefix20220221\Symplify\SmartFileSystem\Json\JsonFileSystem;
|
||||
use RectorPrefix20220221\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/Console/Style/RectorConsoleOutputStyle.php', __DIR__ . '/../src/Exception', __DIR__ . '/../src/DependencyInjection/CompilerPass', __DIR__ . '/../src/DependencyInjection/Loader', __DIR__ . '/../src/Kernel', __DIR__ . '/../src/ValueObject', __DIR__ . '/../src/Bootstrap', __DIR__ . '/../src/Enum', __DIR__ . '/../src/PhpParser/Node/CustomNode', __DIR__ . '/../src/PhpParser/ValueObject', __DIR__ . '/../src/functions', __DIR__ . '/../src/constants.php']);
|
||||
$services->alias(\RectorPrefix20220220\Symfony\Component\Console\Application::class, \Rector\Core\Console\ConsoleApplication::class);
|
||||
$services->set(\RectorPrefix20220220\Symplify\SmartFileSystem\FileSystemGuard::class);
|
||||
$services->set(\Rector\Core\Validation\Collector\EmptyConfigurableRectorCollector::class)->arg('$containerBuilder', \RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
|
||||
$services->set(\RectorPrefix20220220\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser::class);
|
||||
$services->alias(\RectorPrefix20220221\Symfony\Component\Console\Application::class, \Rector\Core\Console\ConsoleApplication::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\SmartFileSystem\FileSystemGuard::class);
|
||||
$services->set(\Rector\Core\Validation\Collector\EmptyConfigurableRectorCollector::class)->arg('$containerBuilder', \RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
|
||||
$services->set(\RectorPrefix20220221\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser::class);
|
||||
$services->set(\PhpParser\ParserFactory::class);
|
||||
$services->set(\PhpParser\BuilderFactory::class);
|
||||
$services->set(\PhpParser\NodeVisitor\CloningVisitor::class);
|
||||
$services->set(\PhpParser\NodeFinder::class);
|
||||
$services->set(\Rector\Core\Console\Style\RectorConsoleOutputStyle::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\Core\Console\Style\RectorConsoleOutputStyleFactory::class), 'create']);
|
||||
$services->set(\PHPStan\Parser\Parser::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createPHPStanParser']);
|
||||
$services->set(\PhpParser\Lexer::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createEmulativeLexer']);
|
||||
$services->set(\Rector\Core\Console\Style\RectorConsoleOutputStyle::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\Core\Console\Style\RectorConsoleOutputStyleFactory::class), 'create']);
|
||||
$services->set(\PHPStan\Parser\Parser::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createPHPStanParser']);
|
||||
$services->set(\PhpParser\Lexer::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createEmulativeLexer']);
|
||||
// symplify/package-builder
|
||||
$services->set(\RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesAccessor::class);
|
||||
$services->set(\RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesCaller::class);
|
||||
$services->set(\RectorPrefix20220220\Symplify\SmartFileSystem\Finder\FinderSanitizer::class);
|
||||
$services->set(\RectorPrefix20220220\Symplify\SmartFileSystem\FileSystemFilter::class);
|
||||
$services->set(\RectorPrefix20220220\Symplify\PackageBuilder\Parameter\ParameterProvider::class)->arg('$container', \RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
|
||||
$services->set(\RectorPrefix20220220\Symplify\PackageBuilder\Console\Command\CommandNaming::class);
|
||||
$services->set(\RectorPrefix20220220\Symplify\SmartFileSystem\SmartFileSystem::class);
|
||||
$services->set(\RectorPrefix20220220\Symplify\PackageBuilder\Strings\StringFormatConverter::class);
|
||||
$services->set(\RectorPrefix20220220\Symplify\SmartFileSystem\Json\JsonFileSystem::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesAccessor::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesCaller::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\SmartFileSystem\Finder\FinderSanitizer::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\SmartFileSystem\FileSystemFilter::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\PackageBuilder\Parameter\ParameterProvider::class)->arg('$container', \RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service('service_container'));
|
||||
$services->set(\RectorPrefix20220221\Symplify\PackageBuilder\Console\Command\CommandNaming::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\SmartFileSystem\SmartFileSystem::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\PackageBuilder\Strings\StringFormatConverter::class);
|
||||
$services->set(\RectorPrefix20220221\Symplify\SmartFileSystem\Json\JsonFileSystem::class);
|
||||
$services->set(\PhpParser\NodeVisitor\NodeConnectingVisitor::class);
|
||||
$services->set(\RectorPrefix20220220\Doctrine\Inflector\Rules\English\InflectorFactory::class);
|
||||
$services->set(\RectorPrefix20220220\Doctrine\Inflector\Inflector::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20220220\Doctrine\Inflector\Rules\English\InflectorFactory::class), 'build']);
|
||||
$services->set(\RectorPrefix20220220\Composer\Semver\VersionParser::class);
|
||||
$services->set(\RectorPrefix20220220\Symplify\PackageBuilder\Php\TypeChecker::class);
|
||||
$services->set(\RectorPrefix20220221\Doctrine\Inflector\Rules\English\InflectorFactory::class);
|
||||
$services->set(\RectorPrefix20220221\Doctrine\Inflector\Inflector::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\RectorPrefix20220221\Doctrine\Inflector\Rules\English\InflectorFactory::class), 'build']);
|
||||
$services->set(\RectorPrefix20220221\Composer\Semver\VersionParser::class);
|
||||
$services->set(\RectorPrefix20220221\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([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDependencyResolver']);
|
||||
$services->set(\PHPStan\File\FileHelper::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createFileHelper']);
|
||||
$services->set(\Rector\Caching\Cache::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\Caching\CacheFactory::class), 'create']);
|
||||
$services->set(\PHPStan\Dependency\DependencyResolver::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDependencyResolver']);
|
||||
$services->set(\PHPStan\File\FileHelper::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createFileHelper']);
|
||||
$services->set(\Rector\Caching\Cache::class)->factory([\RectorPrefix20220221\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([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createReflectionProvider']);
|
||||
$services->set(\PHPStan\Analyser\NodeScopeResolver::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createNodeScopeResolver']);
|
||||
$services->set(\PHPStan\Analyser\ScopeFactory::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createScopeFactory']);
|
||||
$services->set(\PHPStan\PhpDoc\TypeNodeResolver::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createTypeNodeResolver']);
|
||||
$services->set(\Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider::class)->factory([\RectorPrefix20220220\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDynamicSourceLocatorProvider']);
|
||||
$services->set(\RectorPrefix20220220\Ergebnis\Json\Printer\Printer::class);
|
||||
$services->alias(\RectorPrefix20220220\Ergebnis\Json\Printer\PrinterInterface::class, \RectorPrefix20220220\Ergebnis\Json\Printer\Printer::class);
|
||||
$services->set(\RectorPrefix20220220\Idiosyncratic\EditorConfig\EditorConfig::class);
|
||||
$services->set(\PHPStan\Reflection\ReflectionProvider::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createReflectionProvider']);
|
||||
$services->set(\PHPStan\Analyser\NodeScopeResolver::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createNodeScopeResolver']);
|
||||
$services->set(\PHPStan\Analyser\ScopeFactory::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createScopeFactory']);
|
||||
$services->set(\PHPStan\PhpDoc\TypeNodeResolver::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createTypeNodeResolver']);
|
||||
$services->set(\Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider::class)->factory([\RectorPrefix20220221\Symfony\Component\DependencyInjection\Loader\Configurator\service(\Rector\NodeTypeResolver\DependencyInjection\PHPStanServicesFactory::class), 'createDynamicSourceLocatorProvider']);
|
||||
$services->set(\RectorPrefix20220221\Ergebnis\Json\Printer\Printer::class);
|
||||
$services->alias(\RectorPrefix20220221\Ergebnis\Json\Printer\PrinterInterface::class, \RectorPrefix20220221\Ergebnis\Json\Printer\Printer::class);
|
||||
$services->set(\RectorPrefix20220221\Idiosyncratic\EditorConfig\EditorConfig::class);
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\DependencyInjection\Rector\Class_\ActionInjectionToConstructorInjectionRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\CodeQuality\Rector\Array_\ArrayThisCallToThisMethodCallRector;
|
||||
use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\CodingStyle\Rector\Assign\PHPStormVarAnnotationRector;
|
||||
use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector;
|
||||
use Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
// @see https://ocramius.github.io/blog/fluent-interfaces-are-evil/
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
|
||||
use Rector\EarlyReturn\Rector\Foreach_\ReturnAfterToEarlyOnBreakRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Symfony\Rector\ClassMethod\RemoveServiceFromSensioRouteRector;
|
||||
use Rector\Symfony\Rector\ClassMethod\ReplaceSensioRouteAnnotationWithSymfonyRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Symfony\Rector\ClassMethod\TemplateAnnotationToThisRenderRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeLevelSetList;
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Set\ValueObject\DowngradeSetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Arguments\Rector\FuncCall\SwapFuncCallArgumentsRector;
|
||||
use Rector\Arguments\ValueObject\SwapFuncCallArguments;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector;
|
||||
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Order\Rector\Class_\OrderPrivateMethodsByUseRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php52\Rector\Property\VarToPublicPropertyRector;
|
||||
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector;
|
||||
use Rector\Php53\Rector\Ternary\TernaryToElvisRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php54\Rector\Break_\RemoveZeroBreakContinueRector;
|
||||
use Rector\Php54\Rector\FuncCall\RemoveReferenceFromCallRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector;
|
||||
use Rector\Php55\Rector\FuncCall\PregReplaceEModifierRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php56\Rector\FuncCall\PowToExpRector;
|
||||
use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php70\Rector\Assign\ListSplitStringRector;
|
||||
use Rector\Php70\Rector\Assign\ListSwapArrayOrderRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php71\Rector\Assign\AssignArrayToStringRector;
|
||||
use Rector\Php71\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php72\Rector\Assign\ListEachRector;
|
||||
use Rector\Php72\Rector\Assign\ReplaceEachAssignmentWithKeyCurrentRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;
|
||||
use Rector\Php73\Rector\BooleanOr\IsCountableRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector;
|
||||
use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector;
|
||||
use Rector\Arguments\Rector\FuncCall\FunctionArgumentDefaultValueReplacerRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Php81\Rector\Class_\MyCLabsClassToEnumRector;
|
||||
use Rector\Php81\Rector\Class_\SpatieEnumClassToEnumRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\PhpSpecToPHPUnit\Rector\Class_\AddMockPropertiesRector;
|
||||
use Rector\PhpSpecToPHPUnit\Rector\Class_\PhpSpecClassToPHPUnitClassRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use PHPStan\Type\ArrayType;
|
||||
use PHPStan\Type\MixedType;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\Privatization\Rector\Class_\ChangeGlobalVariablesToPropertiesRector;
|
||||
use Rector\Privatization\Rector\Class_\ChangeLocalPropertyToVariableRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
|
||||
use Rector\PSR4\Rector\Namespace_\MultipleClassFileToPsr4ClassesRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220220;
|
||||
namespace RectorPrefix20220221;
|
||||
|
||||
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfFunctionExistsRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
@ -6,7 +6,7 @@ namespace Rector\BetterPhpDocParser\Comment;
|
||||
use PhpParser\Comment;
|
||||
use PhpParser\Node;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use RectorPrefix20220220\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
use RectorPrefix20220221\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
final class CommentsMerger
|
||||
{
|
||||
/**
|
||||
@ -14,7 +14,7 @@ final class CommentsMerger
|
||||
* @var \Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser
|
||||
*/
|
||||
private $simpleCallableNodeTraverser;
|
||||
public function __construct(\RectorPrefix20220220\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser $simpleCallableNodeTraverser)
|
||||
public function __construct(\RectorPrefix20220221\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser $simpleCallableNodeTraverser)
|
||||
{
|
||||
$this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\Contract;
|
||||
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface;
|
||||
interface BasePhpDocNodeVisitorInterface extends \RectorPrefix20220220\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface;
|
||||
interface BasePhpDocNodeVisitorInterface extends \RectorPrefix20220221\Symplify\SimplePhpDocParser\Contract\PhpDocNodeVisitorInterface
|
||||
{
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use Rector\ChangesReporting\Collector\RectorChangeCollector;
|
||||
use Rector\Core\Configuration\CurrentNodeProvider;
|
||||
use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
/**
|
||||
* @template TNode as \PHPStan\PhpDocParser\Ast\Node
|
||||
* @see \Rector\Tests\BetterPhpDocParser\PhpDocInfo\PhpDocInfo\PhpDocInfoTest
|
||||
@ -296,7 +296,7 @@ final class PhpDocInfo
|
||||
*/
|
||||
public function removeByType(string $typeToRemove) : void
|
||||
{
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220221\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 (\strncmp($node->name, '@psalm-', \strlen('@psalm-')) === 0) {
|
||||
@ -306,13 +306,13 @@ final class PhpDocInfo
|
||||
return null;
|
||||
}
|
||||
$this->markAsChanged();
|
||||
return \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
return \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
}
|
||||
if (!\is_a($node, $typeToRemove, \true)) {
|
||||
return null;
|
||||
}
|
||||
$this->markAsChanged();
|
||||
return \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
return \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
});
|
||||
}
|
||||
/**
|
||||
@ -423,7 +423,7 @@ final class PhpDocInfo
|
||||
return \true;
|
||||
}
|
||||
// has a single node with missing start_end
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$changedPhpDocNodeVisitor = new \Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor();
|
||||
$phpDocNodeTraverser->addPhpDocNodeVisitor($changedPhpDocNodeVisitor);
|
||||
$phpDocNodeTraverser->traverse($this->phpDocNode);
|
||||
|
@ -6,7 +6,7 @@ namespace Rector\BetterPhpDocParser\PhpDocInfo;
|
||||
use PHPStan\PhpDocParser\Lexer\Lexer;
|
||||
use PHPStan\PhpDocParser\Parser\TokenIterator;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
final class TokenIteratorFactory
|
||||
{
|
||||
/**
|
||||
@ -23,7 +23,7 @@ final class TokenIteratorFactory
|
||||
* @var \Symplify\PackageBuilder\Reflection\PrivatesAccessor
|
||||
*/
|
||||
private $privatesAccessor;
|
||||
public function __construct(\PHPStan\PhpDocParser\Lexer\Lexer $lexer, \RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor)
|
||||
public function __construct(\PHPStan\PhpDocParser\Lexer\Lexer $lexer, \RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesAccessor $privatesAccessor)
|
||||
{
|
||||
$this->lexer = $lexer;
|
||||
$this->privatesAccessor = $privatesAccessor;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\PhpDocManipulator;
|
||||
|
||||
use RectorPrefix20220220\Nette\Utils\Strings;
|
||||
use RectorPrefix20220221\Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
@ -82,7 +82,7 @@ final class PhpDocClassRenamer
|
||||
$doctrineAnnotationTagValueNode->changeSilentValue($newClass);
|
||||
continue;
|
||||
}
|
||||
$newContent = \RectorPrefix20220220\Nette\Utils\Strings::replace($className, '#\\b' . \preg_quote($oldClass, '#') . '\\b#', $newClass);
|
||||
$newContent = \RectorPrefix20220221\Nette\Utils\Strings::replace($className, '#\\b' . \preg_quote($oldClass, '#') . '\\b#', $newClass);
|
||||
if ($newContent === $className) {
|
||||
continue;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ use PHPStan\PhpDocParser\Ast\Node;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
|
||||
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
|
||||
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220221\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 \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220221\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 \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
return \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
}
|
||||
if ($node !== $desiredNode) {
|
||||
return null;
|
||||
}
|
||||
$phpDocInfo->markAsChanged();
|
||||
return \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
return \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser::NODE_REMOVE;
|
||||
});
|
||||
}
|
||||
private function areAnnotationNamesEqual(string $firstAnnotationName, string $secondAnnotationName) : bool
|
||||
|
@ -6,7 +6,7 @@ namespace Rector\BetterPhpDocParser\PhpDocNodeFinder;
|
||||
use PHPStan\PhpDocParser\Ast\Node;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode;
|
||||
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
/**
|
||||
* @template TNode as \PHPStan\PhpDocParser\Ast\Node
|
||||
*/
|
||||
@ -18,7 +18,7 @@ final class PhpDocNodeByTypeFinder
|
||||
*/
|
||||
public function findByType(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $phpDocNode, string $desiredType) : array
|
||||
{
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$foundNodes = [];
|
||||
$phpDocNodeTraverser->traverseWithCallable($phpDocNode, '', function ($node) use(&$foundNodes, $desiredType) : Node {
|
||||
if (!\is_a($node, $desiredType, \true)) {
|
||||
|
@ -7,9 +7,9 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor;
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor;
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor;
|
||||
/**
|
||||
* @see \Rector\Tests\BetterPhpDocParser\PhpDocNodeMapperTest
|
||||
*/
|
||||
@ -38,7 +38,7 @@ final class PhpDocNodeMapper
|
||||
/**
|
||||
* @param BasePhpDocNodeVisitorInterface[] $phpDocNodeVisitors
|
||||
*/
|
||||
public function __construct(\Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider $currentTokenIteratorProvider, \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor $parentConnectingPhpDocNodeVisitor, \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor $cloningPhpDocNodeVisitor, array $phpDocNodeVisitors)
|
||||
public function __construct(\Rector\BetterPhpDocParser\DataProvider\CurrentTokenIteratorProvider $currentTokenIteratorProvider, \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\ParentConnectingPhpDocNodeVisitor $parentConnectingPhpDocNodeVisitor, \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\CloningPhpDocNodeVisitor $cloningPhpDocNodeVisitor, array $phpDocNodeVisitors)
|
||||
{
|
||||
$this->currentTokenIteratorProvider = $currentTokenIteratorProvider;
|
||||
$this->parentConnectingPhpDocNodeVisitor = $parentConnectingPhpDocNodeVisitor;
|
||||
@ -48,13 +48,13 @@ final class PhpDocNodeMapper
|
||||
public function transform(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode $phpDocNode, \Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator $betterTokenIterator) : void
|
||||
{
|
||||
$this->currentTokenIteratorProvider->setBetterTokenIterator($betterTokenIterator);
|
||||
$parentPhpDocNodeTraverser = new \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$parentPhpDocNodeTraverser = new \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$parentPhpDocNodeTraverser->addPhpDocNodeVisitor($this->parentConnectingPhpDocNodeVisitor);
|
||||
$parentPhpDocNodeTraverser->traverse($phpDocNode);
|
||||
$cloningPhpDocNodeTraverser = new \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$cloningPhpDocNodeTraverser = new \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$cloningPhpDocNodeTraverser->addPhpDocNodeVisitor($this->cloningPhpDocNodeVisitor);
|
||||
$cloningPhpDocNodeTraverser->traverse($phpDocNode);
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$phpDocNodeTraverser = new \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
foreach ($this->phpDocNodeVisitors as $phpDocNodeVisitor) {
|
||||
$phpDocNodeTraverser->addPhpDocNodeVisitor($phpDocNodeVisitor);
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\PhpDocNodeTraverser;
|
||||
|
||||
use Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
final class ChangedPhpDocNodeTraverserFactory
|
||||
{
|
||||
/**
|
||||
@ -16,9 +16,9 @@ final class ChangedPhpDocNodeTraverserFactory
|
||||
{
|
||||
$this->changedPhpDocNodeVisitor = $changedPhpDocNodeVisitor;
|
||||
}
|
||||
public function create() : \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser
|
||||
public function create() : \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser
|
||||
{
|
||||
$changedPhpDocNodeTraverser = new \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$changedPhpDocNodeTraverser = new \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser();
|
||||
$changedPhpDocNodeTraverser->addPhpDocNodeVisitor($this->changedPhpDocNodeVisitor);
|
||||
return $changedPhpDocNodeTraverser;
|
||||
}
|
||||
|
@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\ArrayTypeNode;
|
||||
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ArrayTypePhpDocNodeVisitor extends \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ArrayTypePhpDocNodeVisitor extends \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\CallableTypeNode;
|
||||
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareCallableTypeNode;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class CallableTypePhpDocNodeVisitor extends \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class CallableTypePhpDocNodeVisitor extends \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -5,8 +5,8 @@ namespace Rector\BetterPhpDocParser\PhpDocNodeVisitor;
|
||||
|
||||
use PHPStan\PhpDocParser\Ast\Node;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ChangedPhpDocNodeVisitor extends \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ChangedPhpDocNodeVisitor extends \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
|
@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\Type\IntersectionTypeNode;
|
||||
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareIntersectionTypeNode;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class IntersectionTypeNodePhpDocNodeVisitor extends \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class IntersectionTypeNodePhpDocNodeVisitor extends \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -8,8 +8,8 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
|
||||
use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer;
|
||||
use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDoc\VariadicAwareParamTagValueNode;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ParamPhpDocNodeVisitor extends \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class ParamPhpDocNodeVisitor extends \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -14,8 +14,8 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDoc\SpacingAwareTemplateTagValueNod
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class TemplatePhpDocNodeVisitor extends \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class TemplatePhpDocNodeVisitor extends \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -13,8 +13,8 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareUnionTypeNode;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class UnionTypeNodePhpDocNodeVisitor extends \RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor;
|
||||
final class UnionTypeNodePhpDocNodeVisitor extends \RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor implements \Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
|
@ -18,7 +18,7 @@ use Rector\BetterPhpDocParser\ValueObject\Parser\BetterTokenIterator;
|
||||
use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesCaller;
|
||||
/**
|
||||
* @see \Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\TagValueNodeReprintTest
|
||||
*/
|
||||
@ -44,7 +44,7 @@ final class BetterPhpDocParser extends \PHPStan\PhpDocParser\Parser\PhpDocParser
|
||||
$this->tokenIteratorFactory = $tokenIteratorFactory;
|
||||
$this->doctrineAnnotationDecorator = $doctrineAnnotationDecorator;
|
||||
parent::__construct($typeParser, $constExprParser);
|
||||
$this->privatesCaller = new \RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesCaller();
|
||||
$this->privatesCaller = new \RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesCaller();
|
||||
}
|
||||
public function parse(\PHPStan\PhpDocParser\Parser\TokenIterator $tokenIterator) : \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocNode
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\PhpDocParser;
|
||||
|
||||
use RectorPrefix20220220\Nette\Utils\Strings;
|
||||
use RectorPrefix20220221\Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocChildNode;
|
||||
@ -230,7 +230,7 @@ final class DoctrineAnnotationDecorator
|
||||
}
|
||||
private function resolveFqnAnnotationSpacelessPhpDocTagNode(\PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTextNode $phpDocTextNode) : ?\Rector\BetterPhpDocParser\PhpDoc\SpacelessPhpDocTagNode
|
||||
{
|
||||
$match = \RectorPrefix20220220\Nette\Utils\Strings::match($phpDocTextNode->text, self::LONG_ANNOTATION_REGEX);
|
||||
$match = \RectorPrefix20220221\Nette\Utils\Strings::match($phpDocTextNode->text, self::LONG_ANNOTATION_REGEX);
|
||||
$fullyQualifiedAnnotationClass = $match['class_name'] ?? null;
|
||||
if ($fullyQualifiedAnnotationClass === null) {
|
||||
return null;
|
||||
|
@ -25,7 +25,7 @@ use Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer;
|
||||
use Rector\PhpAttribute\Printer\PhpAttributeGroupFactory;
|
||||
use Rector\PHPStanStaticTypeMapper\Utils\TypeUnwrapper;
|
||||
use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
use RectorPrefix20220220\ReturnTypeWillChange;
|
||||
use RectorPrefix20220221\ReturnTypeWillChange;
|
||||
final class PhpDocFromTypeDeclarationDecorator
|
||||
{
|
||||
/**
|
||||
|
@ -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 RectorPrefix20220220\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix20220221\Symfony\Contracts\Service\Attribute\Required;
|
||||
final class PlainValueParser
|
||||
{
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\Printer;
|
||||
|
||||
use RectorPrefix20220220\Nette\Utils\Strings;
|
||||
use RectorPrefix20220221\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 = \RectorPrefix20220220\Nette\Utils\Strings::replace($docContent, self::NEWLINE_MIDDLE_DOC_REGEX, ' ');
|
||||
return \RectorPrefix20220220\Nette\Utils\Strings::replace($docContent, self::NEWLINE_CLOSING_DOC_REGEX, ' */');
|
||||
$docContent = \RectorPrefix20220221\Nette\Utils\Strings::replace($docContent, self::NEWLINE_MIDDLE_DOC_REGEX, ' ');
|
||||
return \RectorPrefix20220221\Nette\Utils\Strings::replace($docContent, self::NEWLINE_CLOSING_DOC_REGEX, ' */');
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\Printer;
|
||||
|
||||
use RectorPrefix20220220\Nette\Utils\Strings;
|
||||
use RectorPrefix20220221\Nette\Utils\Strings;
|
||||
use PhpParser\Node\Stmt\InlineHTML;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocChildNode;
|
||||
@ -22,7 +22,7 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey;
|
||||
use Rector\BetterPhpDocParser\ValueObject\StartAndEnd;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use Rector\Core\Util\StringUtils;
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
||||
/**
|
||||
* @see \Rector\Tests\BetterPhpDocParser\PhpDocInfo\PhpDocInfoPrinter\PhpDocInfoPrinterTest
|
||||
*/
|
||||
@ -146,7 +146,7 @@ final class PhpDocInfoPrinter
|
||||
$this->currentTokenPosition = 0;
|
||||
$phpDocString = $this->printPhpDocNode($phpDocNode);
|
||||
// hotfix of extra space with callable ()
|
||||
return \RectorPrefix20220220\Nette\Utils\Strings::replace($phpDocString, self::CALLABLE_REGEX, 'callable(');
|
||||
return \RectorPrefix20220221\Nette\Utils\Strings::replace($phpDocString, self::CALLABLE_REGEX, 'callable(');
|
||||
}
|
||||
public function getCurrentPhpDocInfo() : \Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo
|
||||
{
|
||||
@ -195,7 +195,7 @@ final class PhpDocInfoPrinter
|
||||
if ($phpDocChildNode->value instanceof \Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode && $shouldReprintChildNode) {
|
||||
$printedNode = (string) $phpDocChildNode;
|
||||
// remove extra space between tags
|
||||
$printedNode = \RectorPrefix20220220\Nette\Utils\Strings::replace($printedNode, self::TAG_AND_SPACE_REGEX, '$1(');
|
||||
$printedNode = \RectorPrefix20220221\Nette\Utils\Strings::replace($printedNode, self::TAG_AND_SPACE_REGEX, '$1(');
|
||||
return self::NEWLINE_WITH_ASTERISK . ($printedNode === '' ? '' : ' ' . $printedNode);
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ namespace Rector\BetterPhpDocParser\ValueObject\Parser;
|
||||
|
||||
use PHPStan\PhpDocParser\Parser\TokenIterator;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesAccessor;
|
||||
final class BetterTokenIterator extends \PHPStan\PhpDocParser\Parser\TokenIterator
|
||||
{
|
||||
/**
|
||||
@ -26,7 +26,7 @@ final class BetterTokenIterator extends \PHPStan\PhpDocParser\Parser\TokenIterat
|
||||
*/
|
||||
public function __construct(array $tokens, int $index = 0)
|
||||
{
|
||||
$this->privatesAccessor = new \RectorPrefix20220220\Symplify\PackageBuilder\Reflection\PrivatesAccessor();
|
||||
$this->privatesAccessor = new \RectorPrefix20220221\Symplify\PackageBuilder\Reflection\PrivatesAccessor();
|
||||
if ($tokens === []) {
|
||||
$this->privatesAccessor->setPrivateProperty($this, self::TOKENS, []);
|
||||
$this->privatesAccessor->setPrivateProperty($this, self::INDEX, 0);
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\ValueObject\PhpDoc\DoctrineAnnotation;
|
||||
|
||||
use RectorPrefix20220220\Nette\Utils\Strings;
|
||||
use RectorPrefix20220221\Nette\Utils\Strings;
|
||||
use PHPStan\PhpDocParser\Ast\Node;
|
||||
use PHPStan\PhpDocParser\Ast\NodeAttributes;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagValueNode;
|
||||
@ -168,7 +168,7 @@ abstract class AbstractValuesAwareNode implements \PHPStan\PhpDocParser\Ast\PhpD
|
||||
if (!\is_string($value)) {
|
||||
return $value;
|
||||
}
|
||||
$matches = \RectorPrefix20220220\Nette\Utils\Strings::match($value, self::UNQUOTED_VALUE_REGEX);
|
||||
$matches = \RectorPrefix20220221\Nette\Utils\Strings::match($value, self::UNQUOTED_VALUE_REGEX);
|
||||
if ($matches === null) {
|
||||
return $value;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\ValueObject;
|
||||
|
||||
use RectorPrefix20220220\Symplify\SimplePhpDocParser\ValueObject\PhpDocAttributeKey as NativePhpDocAttributeKey;
|
||||
use RectorPrefix20220221\Symplify\SimplePhpDocParser\ValueObject\PhpDocAttributeKey as NativePhpDocAttributeKey;
|
||||
final class PhpDocAttributeKey
|
||||
{
|
||||
/**
|
||||
@ -18,7 +18,7 @@ final class PhpDocAttributeKey
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PARENT = \RectorPrefix20220220\Symplify\SimplePhpDocParser\ValueObject\PhpDocAttributeKey::PARENT;
|
||||
public const PARENT = \RectorPrefix20220221\Symplify\SimplePhpDocParser\ValueObject\PhpDocAttributeKey::PARENT;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
@ -26,5 +26,5 @@ final class PhpDocAttributeKey
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const ORIG_NODE = \RectorPrefix20220220\Symplify\SimplePhpDocParser\ValueObject\PhpDocAttributeKey::ORIG_NODE;
|
||||
public const ORIG_NODE = \RectorPrefix20220221\Symplify\SimplePhpDocParser\ValueObject\PhpDocAttributeKey::ORIG_NODE;
|
||||
}
|
||||
|
@ -6,8 +6,8 @@ namespace Rector\Caching;
|
||||
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
|
||||
use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use RectorPrefix20220220\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
use RectorPrefix20220220\Symplify\SmartFileSystem\SmartFileSystem;
|
||||
use RectorPrefix20220221\Symplify\PackageBuilder\Parameter\ParameterProvider;
|
||||
use RectorPrefix20220221\Symplify\SmartFileSystem\SmartFileSystem;
|
||||
final class CacheFactory
|
||||
{
|
||||
/**
|
||||
@ -20,7 +20,7 @@ final class CacheFactory
|
||||
* @var \Symplify\SmartFileSystem\SmartFileSystem
|
||||
*/
|
||||
private $smartFileSystem;
|
||||
public function __construct(\RectorPrefix20220220\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \RectorPrefix20220220\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
|
||||
public function __construct(\RectorPrefix20220221\Symplify\PackageBuilder\Parameter\ParameterProvider $parameterProvider, \RectorPrefix20220221\Symplify\SmartFileSystem\SmartFileSystem $smartFileSystem)
|
||||
{
|
||||
$this->parameterProvider = $parameterProvider;
|
||||
$this->smartFileSystem = $smartFileSystem;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user