mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 05:18:18 +01:00
Updated Rector to commit a2cd7283fbf2d6b2904016c51e3f4a545caa0256
a2cd7283fb
Typo fix comment php 7.3 compat on rector workflow (#3432)
This commit is contained in:
parent
7a073d6432
commit
7d0f151a40
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
require_once __DIR__ . '/rector.php';
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Json;
|
||||
use RectorPrefix202303\Nette\Utils\Json;
|
||||
use Rector\ChangesReporting\Output\JsonOutputFormatter;
|
||||
use Rector\Core\Bootstrap\RectorConfigsResolver;
|
||||
use Rector\Core\Configuration\Option;
|
||||
@ -12,8 +12,8 @@ use Rector\Core\Console\Style\RectorConsoleOutputStyleFactory;
|
||||
use Rector\Core\DependencyInjection\RectorContainerFactory;
|
||||
use Rector\Core\Kernel\RectorKernel;
|
||||
use Rector\Core\Util\Reflection\PrivatesAccessor;
|
||||
use RectorPrefix202302\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix202302\Symfony\Component\Console\Input\ArgvInput;
|
||||
use RectorPrefix202303\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix202303\Symfony\Component\Console\Input\ArgvInput;
|
||||
// @ intentionally: continue anyway
|
||||
@\ini_set('memory_limit', '-1');
|
||||
// Performance boost
|
||||
|
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use RectorPrefix202302\Composer\Semver\VersionParser;
|
||||
use RectorPrefix202302\Doctrine\Inflector\Inflector;
|
||||
use RectorPrefix202302\Doctrine\Inflector\Rules\English\InflectorFactory;
|
||||
use RectorPrefix202302\OndraM\CiDetector\CiDetector;
|
||||
use RectorPrefix202303\Composer\Semver\VersionParser;
|
||||
use RectorPrefix202303\Doctrine\Inflector\Inflector;
|
||||
use RectorPrefix202303\Doctrine\Inflector\Rules\English\InflectorFactory;
|
||||
use RectorPrefix202303\OndraM\CiDetector\CiDetector;
|
||||
use PhpParser\BuilderFactory;
|
||||
use PhpParser\ConstExprEvaluator;
|
||||
use PhpParser\Lexer;
|
||||
@ -45,11 +45,11 @@ use Rector\PhpDocParser\PhpParser\SmartPhpParserFactory;
|
||||
use Rector\PSR4\Composer\PSR4NamespaceMatcher;
|
||||
use Rector\PSR4\Contract\PSR4AutoloadNamespaceMatcherInterface;
|
||||
use Rector\Utils\Command\MissingInSetCommand;
|
||||
use RectorPrefix202302\Symfony\Component\Console\Application;
|
||||
use RectorPrefix202302\Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use function RectorPrefix202302\Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
||||
use RectorPrefix202302\Symfony\Component\Filesystem\Filesystem;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\ValueObject\EasyParallelConfig;
|
||||
use RectorPrefix202303\Symfony\Component\Console\Application;
|
||||
use RectorPrefix202303\Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use function RectorPrefix202303\Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
||||
use RectorPrefix202303\Symfony\Component\Filesystem\Filesystem;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\ValueObject\EasyParallelConfig;
|
||||
return static function (RectorConfig $rectorConfig) : void {
|
||||
// make use of https://github.com/symplify/easy-parallel
|
||||
$rectorConfig->import(EasyParallelConfig::FILE_PATH);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\DependencyInjection\Rector\Class_\ActionInjectionToConstructorInjectionRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector;
|
||||
use Rector\CodeQuality\Rector\Assign\CombinedAssignRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector;
|
||||
use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Arguments\Rector\FuncCall\SwapFuncCallArgumentsRector;
|
||||
use Rector\Arguments\ValueObject\SwapFuncCallArguments;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php52\Rector\Property\VarToPublicPropertyRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php56\Rector\FuncCall\PowToExpRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php70\Rector\Assign\ListSplitStringRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php71\Rector\Assign\AssignArrayToStringRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php72\Rector\Assign\ListEachRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector;
|
||||
use Rector\Arguments\Rector\FuncCall\FunctionArgumentDefaultValueReplacerRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php82\Rector\Class_\ReadOnlyClassRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Privatization\Rector\Class_\ChangeGlobalVariablesToPropertiesRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202302;
|
||||
namespace RectorPrefix202303;
|
||||
|
||||
use Rector\CodeQuality\Rector\ClassMethod\ReturnTypeFromStrictScalarReturnExprRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\PhpDocManipulator;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use Rector\BetterPhpDocParser\PhpDoc\ArrayItemNode;
|
||||
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\PhpDocParser;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocChildNode;
|
||||
|
@ -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 RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
final class PlainValueParser
|
||||
{
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\Printer;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
final class DocBlockInliner
|
||||
{
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\BetterPhpDocParser\Printer;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PhpParser\Node\Stmt\InlineHTML;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\ParamTagValueNode;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocChildNode;
|
||||
|
@ -5,7 +5,7 @@ namespace Rector\BetterPhpDocParser\ValueObject\PhpDoc\DoctrineAnnotation;
|
||||
|
||||
use Rector\BetterPhpDocParser\PhpDoc\ArrayItemNode;
|
||||
use Stringable;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
final class CurlyListNode extends \Rector\BetterPhpDocParser\ValueObject\PhpDoc\DoctrineAnnotation\AbstractValuesAwareNode
|
||||
{
|
||||
/**
|
||||
|
@ -7,7 +7,7 @@ use Rector\Caching\ValueObject\Storage\FileCacheStorage;
|
||||
use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\Configuration\Parameter\ParameterProvider;
|
||||
use RectorPrefix202302\Symfony\Component\Filesystem\Filesystem;
|
||||
use RectorPrefix202303\Symfony\Component\Filesystem\Filesystem;
|
||||
final class CacheFactory
|
||||
{
|
||||
/**
|
||||
|
@ -4,12 +4,12 @@ declare (strict_types=1);
|
||||
namespace Rector\Caching\Config;
|
||||
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use RectorPrefix202302\Symfony\Component\Config\FileLocator;
|
||||
use RectorPrefix202302\Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use RectorPrefix202302\Symfony\Component\Config\Loader\LoaderResolver;
|
||||
use RectorPrefix202302\Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use RectorPrefix202302\Symfony\Component\DependencyInjection\Loader\GlobFileLoader;
|
||||
use RectorPrefix202302\Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
|
||||
use RectorPrefix202303\Symfony\Component\Config\FileLocator;
|
||||
use RectorPrefix202303\Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use RectorPrefix202303\Symfony\Component\Config\Loader\LoaderResolver;
|
||||
use RectorPrefix202303\Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use RectorPrefix202303\Symfony\Component\DependencyInjection\Loader\GlobFileLoader;
|
||||
use RectorPrefix202303\Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
|
||||
/**
|
||||
* Inspired by https://github.com/symplify/easy-coding-standard/blob/e598ab54686e416788f28fcfe007fd08e0f371d9/packages/changed-files-detector/src/FileHashComputer.php
|
||||
*/
|
||||
|
@ -4,8 +4,8 @@ declare (strict_types=1);
|
||||
namespace Rector\Caching\ValueObject\Storage;
|
||||
|
||||
use FilesystemIterator;
|
||||
use RectorPrefix202302\Nette\Utils\FileSystem;
|
||||
use RectorPrefix202302\Nette\Utils\Random;
|
||||
use RectorPrefix202303\Nette\Utils\FileSystem;
|
||||
use RectorPrefix202303\Nette\Utils\Random;
|
||||
use Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface;
|
||||
use Rector\Caching\ValueObject\CacheFilePaths;
|
||||
use Rector\Caching\ValueObject\CacheItem;
|
||||
@ -24,7 +24,7 @@ final class FileCacheStorage implements CacheStorageInterface
|
||||
* @var \Symfony\Component\Filesystem\Filesystem
|
||||
*/
|
||||
private $filesystem;
|
||||
public function __construct(string $directory, \RectorPrefix202302\Symfony\Component\Filesystem\Filesystem $filesystem)
|
||||
public function __construct(string $directory, \RectorPrefix202303\Symfony\Component\Filesystem\Filesystem $filesystem)
|
||||
{
|
||||
$this->directory = $directory;
|
||||
$this->filesystem = $filesystem;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\ChangesReporting\Annotation;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use Rector\Core\Contract\Rector\RectorInterface;
|
||||
use ReflectionClass;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\ChangesReporting\Output;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use Rector\ChangesReporting\Annotation\RectorsChangelogResolver;
|
||||
use Rector\ChangesReporting\Contract\Output\OutputFormatterInterface;
|
||||
use Rector\Core\Contract\Console\OutputStyleInterface;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\ChangesReporting\Output;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Json;
|
||||
use RectorPrefix202303\Nette\Utils\Json;
|
||||
use Rector\ChangesReporting\Annotation\RectorsChangelogResolver;
|
||||
use Rector\ChangesReporting\Contract\Output\OutputFormatterInterface;
|
||||
use Rector\Core\ValueObject\Configuration;
|
||||
|
@ -4,8 +4,8 @@ declare (strict_types=1);
|
||||
namespace Rector\ChangesReporting\ValueObject;
|
||||
|
||||
use Rector\Core\Contract\Rector\RectorInterface;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Contract\SerializableInterface;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Contract\SerializableInterface;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
final class RectorWithLineChange implements SerializableInterface
|
||||
{
|
||||
/**
|
||||
@ -48,7 +48,7 @@ final class RectorWithLineChange implements SerializableInterface
|
||||
* @param array<string, mixed> $json
|
||||
* @return $this
|
||||
*/
|
||||
public static function decode(array $json) : \RectorPrefix202302\Symplify\EasyParallel\Contract\SerializableInterface
|
||||
public static function decode(array $json) : \RectorPrefix202303\Symplify\EasyParallel\Contract\SerializableInterface
|
||||
{
|
||||
$rectorClass = $json[self::KEY_RECTOR_CLASS];
|
||||
Assert::string($rectorClass);
|
||||
|
@ -9,8 +9,8 @@ use Rector\Core\Configuration\ValueObjectInliner;
|
||||
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
|
||||
use Rector\Core\Contract\Rector\RectorInterface;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
use RectorPrefix202302\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
/**
|
||||
* @api
|
||||
* Same as Symfony container configurator, with patched return type for "set()" method for easier DX.
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\FileSystemRector\Parser;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\FileSystem;
|
||||
use RectorPrefix202303\Nette\Utils\FileSystem;
|
||||
use PhpParser\Node\Stmt;
|
||||
use Rector\Core\PhpParser\NodeTraverser\FileWithoutNamespaceNodeTraverser;
|
||||
use Rector\Core\PhpParser\Parser\RectorParser;
|
||||
|
@ -7,7 +7,7 @@ use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\ClassConstFetch;
|
||||
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements NodeNameResolverInterface<ClassConstFetch>
|
||||
*/
|
||||
|
@ -7,7 +7,7 @@ use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\ClassConst;
|
||||
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements NodeNameResolverInterface<ClassConst>
|
||||
*/
|
||||
|
@ -8,7 +8,7 @@ use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Stmt\ClassLike;
|
||||
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements NodeNameResolverInterface<ClassLike>
|
||||
*/
|
||||
|
@ -7,7 +7,7 @@ use PhpParser\Node;
|
||||
use PhpParser\Node\Param;
|
||||
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements NodeNameResolverInterface<Param>
|
||||
*/
|
||||
|
@ -7,7 +7,7 @@ use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements NodeNameResolverInterface<Property>
|
||||
*/
|
||||
|
@ -7,7 +7,7 @@ use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\Use_;
|
||||
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements NodeNameResolverInterface<Use_>
|
||||
*/
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\NodeNameResolver\Regex;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
final class RegexPatternDetector
|
||||
{
|
||||
/**
|
||||
|
@ -3,8 +3,8 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\NodeTypeResolver\DependencyInjection;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\FileSystem;
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\FileSystem;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
/**
|
||||
* Prevents failing include of bleeding edge in of phpstan extensions.
|
||||
* @see https://github.com/rectorphp/rector/issues/2431
|
||||
|
@ -16,7 +16,7 @@ use PHPStan\Reflection\ReflectionProvider;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\Configuration\Parameter\ParameterProvider;
|
||||
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider;
|
||||
use RectorPrefix202302\Symfony\Component\Filesystem\Filesystem;
|
||||
use RectorPrefix202303\Symfony\Component\Filesystem\Filesystem;
|
||||
/**
|
||||
* Factory so Symfony app can use services from PHPStan container
|
||||
*
|
||||
|
@ -13,7 +13,7 @@ use PHPStan\Type\Type;
|
||||
use Rector\Core\PhpParser\Node\BetterNodeFinder;
|
||||
use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
|
||||
use Rector\NodeTypeResolver\NodeTypeResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements NodeTypeResolverInterface<ClassMethod|ClassConst>
|
||||
*/
|
||||
|
@ -22,7 +22,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\NodeTypeResolver\NodeTypeResolver;
|
||||
use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @see \Rector\Tests\NodeTypeResolver\PerNodeTypeResolver\ParamTypeResolver\ParamTypeResolverTest
|
||||
*
|
||||
|
@ -16,7 +16,7 @@ use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\NodeTypeResolver\NodeTypeResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @see \Rector\Tests\NodeTypeResolver\PerNodeTypeResolver\PropertyFetchTypeResolver\PropertyFetchTypeResolverTest
|
||||
*
|
||||
|
@ -11,7 +11,7 @@ use PHPStan\Type\Type;
|
||||
use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\NodeTypeResolver\NodeTypeResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @see \Rector\Tests\NodeTypeResolver\PerNodeTypeResolver\PropertyTypeResolver\PropertyTypeResolverTest
|
||||
*
|
||||
|
@ -9,7 +9,7 @@ use PHPStan\Type\Type;
|
||||
use PHPStan\Type\VoidType;
|
||||
use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
|
||||
use Rector\NodeTypeResolver\NodeTypeResolver;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements NodeTypeResolverInterface<Return_>
|
||||
*/
|
||||
|
@ -16,7 +16,7 @@ use Rector\NodeTypeResolver\Contract\NodeTypeResolverInterface;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\NodeTypeResolver\NodeTypeResolver;
|
||||
use Rector\NodeTypeResolver\PHPStan\ParametersAcceptorSelectorVariantsWrapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements NodeTypeResolverInterface<StaticCall|MethodCall>
|
||||
*/
|
||||
|
@ -53,7 +53,7 @@ use Rector\Core\Util\Reflection\PrivatesAccessor;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor\RemoveDeepChainMethodCallNodeVisitor;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
/**
|
||||
* @inspired by https://github.com/silverstripe/silverstripe-upgrader/blob/532182b23e854d02e0b27e68ebc394f436de0682/src/UpgradeRule/PHP/Visitor/PHPStanScopeVisitor.php
|
||||
* - https://github.com/silverstripe/silverstripe-upgrader/pull/57/commits/e5c7cfa166ad940d9d4ff69537d9f7608e992359#diff-5e0807bb3dc03d6a8d8b6ad049abd774
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\NodeTypeResolver\PhpDocNodeVisitor;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PhpParser\Node as PhpParserNode;
|
||||
use PHPStan\PhpDocParser\Ast\Node;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\TemplateTagValueNode;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\NodeTypeResolver\PhpDocNodeVisitor;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PHPStan\PhpDocParser\Ast\Node;
|
||||
use PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode;
|
||||
use PHPStan\Type\ObjectType;
|
||||
|
@ -11,7 +11,7 @@ use PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLo
|
||||
use PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedSingleFileSourceLocator;
|
||||
use Rector\NodeTypeResolver\Contract\SourceLocatorProviderInterface;
|
||||
use Rector\Testing\PHPUnit\StaticPHPUnitEnvironment;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
/**
|
||||
* @api phpstan external
|
||||
*/
|
||||
|
@ -28,7 +28,7 @@ use Rector\PHPStanStaticTypeMapper\PHPStanStaticTypeMapper;
|
||||
use Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeCommonTypeNarrower;
|
||||
use Rector\TypeDeclaration\NodeTypeAnalyzer\DetailedTypeAnalyzer;
|
||||
use Rector\TypeDeclaration\TypeAnalyzer\GenericClassStringTypeNormalizer;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @see \Rector\Tests\PHPStanStaticTypeMapper\TypeMapper\ArrayTypeMapperTest
|
||||
*
|
||||
|
@ -14,7 +14,7 @@ use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareCallableTypeNode;
|
||||
use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
||||
use Rector\PHPStanStaticTypeMapper\Enum\TypeKind;
|
||||
use Rector\PHPStanStaticTypeMapper\PHPStanStaticTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements TypeMapperInterface<CallableType>
|
||||
*/
|
||||
|
@ -15,8 +15,8 @@ use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareCallableTypeNode;
|
||||
use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
||||
use Rector\PHPStanStaticTypeMapper\Enum\TypeKind;
|
||||
use Rector\PHPStanStaticTypeMapper\PHPStanStaticTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
/**
|
||||
* @implements TypeMapperInterface<ClosureType>
|
||||
*/
|
||||
|
@ -10,7 +10,7 @@ use PHPStan\Type\Type;
|
||||
use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
||||
use Rector\PHPStanStaticTypeMapper\Enum\TypeKind;
|
||||
use Rector\PHPStanStaticTypeMapper\PHPStanStaticTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements TypeMapperInterface<ConditionalTypeForParameter>
|
||||
*/
|
||||
|
@ -16,7 +16,7 @@ use Rector\Core\Php\PhpVersionProvider;
|
||||
use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
||||
use Rector\PHPStanStaticTypeMapper\PHPStanStaticTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements TypeMapperInterface<GenericClassStringType>
|
||||
*/
|
||||
|
@ -17,7 +17,7 @@ use Rector\Core\Php\PhpVersionProvider;
|
||||
use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
||||
use Rector\PHPStanStaticTypeMapper\PHPStanStaticTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements TypeMapperInterface<IntersectionType>
|
||||
*/
|
||||
|
@ -14,7 +14,7 @@ use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareUnionTypeNode;
|
||||
use Rector\BetterPhpDocParser\ValueObject\Type\SpacingAwareArrayTypeNode;
|
||||
use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
|
||||
use Rector\PHPStanStaticTypeMapper\PHPStanStaticTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements TypeMapperInterface<IterableType>
|
||||
*/
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\PHPStanStaticTypeMapper\TypeMapper;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Name\FullyQualified;
|
||||
@ -23,7 +23,7 @@ use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType;
|
||||
use Rector\StaticTypeMapper\ValueObject\Type\NonExistingObjectType;
|
||||
use Rector\StaticTypeMapper\ValueObject\Type\SelfObjectType;
|
||||
use Rector\StaticTypeMapper\ValueObject\Type\ShortenedObjectType;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements TypeMapperInterface<ObjectType>
|
||||
*/
|
||||
|
@ -37,10 +37,10 @@ use Rector\PHPStanStaticTypeMapper\TypeAnalyzer\BoolUnionTypeAnalyzer;
|
||||
use Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeAnalyzer;
|
||||
use Rector\PHPStanStaticTypeMapper\TypeAnalyzer\UnionTypeCommonTypeNarrower;
|
||||
use Rector\PHPStanStaticTypeMapper\ValueObject\UnionTypeAnalysis;
|
||||
use function RectorPrefix202302\Symfony\Component\String\b;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202302\Webmozart\Assert\InvalidArgumentException;
|
||||
use function RectorPrefix202303\Symfony\Component\String\b;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Webmozart\Assert\InvalidArgumentException;
|
||||
/**
|
||||
* @implements TypeMapperInterface<UnionType>
|
||||
*/
|
||||
|
@ -3,12 +3,12 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Parallel\Application;
|
||||
|
||||
use RectorPrefix202302\Clue\React\NDJson\Decoder;
|
||||
use RectorPrefix202302\Clue\React\NDJson\Encoder;
|
||||
use RectorPrefix202302\Nette\Utils\Random;
|
||||
use RectorPrefix202302\React\EventLoop\StreamSelectLoop;
|
||||
use RectorPrefix202302\React\Socket\ConnectionInterface;
|
||||
use RectorPrefix202302\React\Socket\TcpServer;
|
||||
use RectorPrefix202303\Clue\React\NDJson\Decoder;
|
||||
use RectorPrefix202303\Clue\React\NDJson\Encoder;
|
||||
use RectorPrefix202303\Nette\Utils\Random;
|
||||
use RectorPrefix202303\React\EventLoop\StreamSelectLoop;
|
||||
use RectorPrefix202303\React\Socket\ConnectionInterface;
|
||||
use RectorPrefix202303\React\Socket\TcpServer;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\Configuration\Parameter\ParameterProvider;
|
||||
use Rector\Core\Console\Command\ProcessCommand;
|
||||
@ -16,16 +16,16 @@ use Rector\Core\ValueObject\Error\SystemError;
|
||||
use Rector\Core\ValueObject\Reporting\FileDiff;
|
||||
use Rector\Parallel\Command\WorkerCommandLineFactory;
|
||||
use Rector\Parallel\ValueObject\Bridge;
|
||||
use RectorPrefix202302\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix202302\Symfony\Component\Console\Input\InputInterface;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Contract\SerializableInterface;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Enum\Action;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Enum\Content;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Enum\ReactCommand;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Enum\ReactEvent;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\ValueObject\ParallelProcess;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\ValueObject\ProcessPool;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\ValueObject\Schedule;
|
||||
use RectorPrefix202303\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix202303\Symfony\Component\Console\Input\InputInterface;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Contract\SerializableInterface;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Enum\Action;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Enum\Content;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Enum\ReactCommand;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Enum\ReactEvent;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\ValueObject\ParallelProcess;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\ValueObject\ProcessPool;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\ValueObject\Schedule;
|
||||
use Throwable;
|
||||
/**
|
||||
* Inspired from @see
|
||||
|
@ -5,10 +5,10 @@ namespace Rector\Parallel\Command;
|
||||
|
||||
use Rector\ChangesReporting\Output\JsonOutputFormatter;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use RectorPrefix202302\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix202302\Symfony\Component\Console\Input\InputInterface;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Exception\ParallelShouldNotHappenException;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Reflection\CommandFromReflectionFactory;
|
||||
use RectorPrefix202303\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix202303\Symfony\Component\Console\Input\InputInterface;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Exception\ParallelShouldNotHappenException;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Reflection\CommandFromReflectionFactory;
|
||||
/**
|
||||
* @see \Rector\Tests\Parallel\Command\WorkerCommandLineFactoryTest
|
||||
* @todo possibly extract to symplify/easy-parallel
|
||||
|
@ -3,9 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Parallel;
|
||||
|
||||
use RectorPrefix202302\Clue\React\NDJson\Decoder;
|
||||
use RectorPrefix202302\Clue\React\NDJson\Encoder;
|
||||
use RectorPrefix202302\Nette\Utils\FileSystem;
|
||||
use RectorPrefix202303\Clue\React\NDJson\Decoder;
|
||||
use RectorPrefix202303\Clue\React\NDJson\Encoder;
|
||||
use RectorPrefix202303\Nette\Utils\FileSystem;
|
||||
use Rector\Core\Application\ApplicationFileProcessor;
|
||||
use Rector\Core\Application\FileSystem\RemovedAndAddedFilesProcessor;
|
||||
use Rector\Core\Console\Style\RectorConsoleOutputStyle;
|
||||
@ -18,9 +18,9 @@ use Rector\Core\ValueObject\Configuration;
|
||||
use Rector\Core\ValueObject\Error\SystemError;
|
||||
use Rector\Core\ValueObject\Reporting\FileDiff;
|
||||
use Rector\Parallel\ValueObject\Bridge;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Enum\Action;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Enum\ReactCommand;
|
||||
use RectorPrefix202302\Symplify\EasyParallel\Enum\ReactEvent;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Enum\Action;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Enum\ReactCommand;
|
||||
use RectorPrefix202303\Symplify\EasyParallel\Enum\ReactEvent;
|
||||
use Throwable;
|
||||
final class WorkerRunner
|
||||
{
|
||||
|
@ -13,8 +13,8 @@ use Rector\Core\PhpParser\Node\Value\ValueResolver;
|
||||
use Rector\PhpAttribute\AnnotationToAttributeMapper;
|
||||
use Rector\PhpAttribute\Contract\AnnotationToAttributeMapperInterface;
|
||||
use Rector\PhpAttribute\Enum\DocTagNodeState;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
/**
|
||||
* @implements AnnotationToAttributeMapperInterface<mixed[]>
|
||||
*/
|
||||
|
@ -13,8 +13,8 @@ use Rector\Core\Validation\RectorAssert;
|
||||
use Rector\PhpAttribute\AnnotationToAttributeMapper;
|
||||
use Rector\PhpAttribute\Contract\AnnotationToAttributeMapperInterface;
|
||||
use Rector\PhpAttribute\Enum\DocTagNodeState;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202302\Webmozart\Assert\InvalidArgumentException;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Webmozart\Assert\InvalidArgumentException;
|
||||
/**
|
||||
* @implements AnnotationToAttributeMapperInterface<ArrayItemNode>
|
||||
*/
|
||||
|
@ -10,8 +10,8 @@ use Rector\BetterPhpDocParser\ValueObject\PhpDoc\DoctrineAnnotation\CurlyListNod
|
||||
use Rector\PhpAttribute\AnnotationToAttributeMapper;
|
||||
use Rector\PhpAttribute\Contract\AnnotationToAttributeMapperInterface;
|
||||
use Rector\PhpAttribute\Enum\DocTagNodeState;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
/**
|
||||
* @implements AnnotationToAttributeMapperInterface<CurlyListNode>
|
||||
*/
|
||||
|
@ -13,7 +13,7 @@ use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\PhpAttribute\AnnotationToAttributeMapper;
|
||||
use Rector\PhpAttribute\AttributeArrayNameInliner;
|
||||
use Rector\PhpAttribute\Contract\AnnotationToAttributeMapperInterface;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements AnnotationToAttributeMapperInterface<DoctrineAnnotationTagValueNode>
|
||||
*/
|
||||
|
@ -10,7 +10,7 @@ use PhpParser\Node\Identifier;
|
||||
use PhpParser\Node\Scalar\LNumber;
|
||||
use PhpParser\Node\Scalar\String_;
|
||||
use Rector\Core\Exception\NotImplementedYetException;
|
||||
use RectorPrefix202302\Webmozart\Assert\Assert;
|
||||
use RectorPrefix202303\Webmozart\Assert\Assert;
|
||||
final class AttributeArrayNameInliner
|
||||
{
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\PhpAttribute\NodeFactory;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PhpParser\BuilderHelpers;
|
||||
use PhpParser\Node\Arg;
|
||||
use PhpParser\Node\Expr;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\PhpAttribute\NodeFactory;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PhpParser\Node\Arg;
|
||||
use PhpParser\Node\Attribute;
|
||||
use PhpParser\Node\AttributeGroup;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\PostRector\Rector;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Name\FullyQualified;
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\Skipper\FileSystem;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use Rector\Skipper\Enum\AsteriskMatch;
|
||||
/**
|
||||
* @see \Rector\Tests\Skipper\FileSystem\FnMatchPathNormalizerTest
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\StaticTypeMapper\Mapper;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PHPStan\Type\Accessory\AccessoryNonEmptyStringType;
|
||||
use PHPStan\Type\ArrayType;
|
||||
use PHPStan\Type\BooleanType;
|
||||
|
@ -18,7 +18,7 @@ use Rector\Core\PhpParser\Node\BetterNodeFinder;
|
||||
use Rector\Naming\Naming\UseImportsResolver;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @see https://github.com/phpstan/phpstan-src/blob/8376548f76e2c845ae047e3010e873015b796818/src/Analyser/NameScope.php#L32
|
||||
*/
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\StaticTypeMapper\PhpDocParser;
|
||||
|
||||
use RectorPrefix202302\Nette\Utils\Strings;
|
||||
use RectorPrefix202303\Nette\Utils\Strings;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\ClassLike;
|
||||
use PHPStan\Analyser\NameScope;
|
||||
|
@ -11,7 +11,7 @@ use PHPStan\Type\IntersectionType;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\StaticTypeMapper\Contract\PhpDocParser\PhpDocTypeMapperInterface;
|
||||
use Rector\StaticTypeMapper\PhpDoc\PhpDocTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements PhpDocTypeMapperInterface<IntersectionTypeNode>
|
||||
*/
|
||||
|
@ -11,7 +11,7 @@ use PHPStan\Type\Type;
|
||||
use Rector\NodeTypeResolver\PHPStan\Type\TypeFactory;
|
||||
use Rector\StaticTypeMapper\Contract\PhpDocParser\PhpDocTypeMapperInterface;
|
||||
use Rector\StaticTypeMapper\PhpDoc\PhpDocTypeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements PhpDocTypeMapperInterface<UnionTypeNode>
|
||||
*/
|
||||
|
@ -8,7 +8,7 @@ use PHPStan\Type\IntersectionType;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\StaticTypeMapper\Contract\PhpParser\PhpParserNodeMapperInterface;
|
||||
use Rector\StaticTypeMapper\Mapper\PhpParserNodeMapper;
|
||||
use RectorPrefix202302\Symfony\Contracts\Service\Attribute\Required;
|
||||
use RectorPrefix202303\Symfony\Contracts\Service\Attribute\Required;
|
||||
/**
|
||||
* @implements PhpParserNodeMapperInterface<Node\IntersectionType>
|
||||
*/
|
||||
|
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