Updated Rector to commit ed92724c846790f1bab66cd81b3e20a6561694ed

ed92724c84 [DX] Try unused public const PHPStan rule (#2595)
This commit is contained in:
Tomas Votruba 2022-06-30 13:57:27 +00:00
parent 4f6ff772bb
commit 8582284513
37 changed files with 158 additions and 178 deletions

View File

@ -37,6 +37,7 @@ use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\Intermedia
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider;
use Rector\PSR4\Composer\PSR4NamespaceMatcher;
use Rector\PSR4\Contract\PSR4AutoloadNamespaceMatcherInterface;
use Rector\Utils\Command\MissingInSetCommand;
use RectorPrefix202206\Symfony\Component\Console\Application;
use function RectorPrefix202206\Symfony\Component\DependencyInjection\Loader\Configurator\service;
use RectorPrefix202206\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
@ -138,4 +139,5 @@ return static function (RectorConfig $rectorConfig) : void {
$services->set(ScopeFactory::class)->factory([service(PHPStanServicesFactory::class), 'createScopeFactory']);
$services->set(TypeNodeResolver::class)->factory([service(PHPStanServicesFactory::class), 'createTypeNodeResolver']);
$services->set(DynamicSourceLocatorProvider::class)->factory([service(PHPStanServicesFactory::class), 'createDynamicSourceLocatorProvider']);
$services->set(MissingInSetCommand::class);
};

View File

@ -31,7 +31,7 @@ final class PhpDocInfoPrinter
* @var string
* @see https://regex101.com/r/Ab0Vey/1
*/
public const CLOSING_DOCBLOCK_REGEX = '#\\*\\/(\\s+)?$#';
private const CLOSING_DOCBLOCK_REGEX = '#\\*\\/(\\s+)?$#';
/**
* @var string
* @see https://regex101.com/r/mVmOCY/2

View File

@ -10,11 +10,6 @@ use Rector\BetterPhpDocParser\Printer\PhpDocInfoPrinter;
use Rector\NodeTypeResolver\Node\AttributeKey;
final class DocBlockUpdater
{
/**
* @var string
* @see https://regex101.com/r/VdaVGL/1
*/
public const SPACE_OR_ASTERISK_REGEX = '#(\\s|\\*)+#';
/**
* @readonly
* @var \Rector\BetterPhpDocParser\Printer\PhpDocInfoPrinter

View File

@ -67,19 +67,6 @@ final class AttributeKey
* @var string
*/
public const NEXT_NODE = 'next';
/**
* @deprecated Instead of tree climbing without context, hook into parent node that contains the stmts directly.
* E.g. FunctionLike, If_, While_ etc.
* @var string
*/
public const PREVIOUS_STATEMENT = 'previousExpression';
/**
* @deprecated Instead of tree climbing without context, hook into parent node that contains the stmts directly.
* E.g. FunctionLike, If_, While_ etc.
* Use @see \Rector\Core\PhpParser\Node\BetterNodeFinder::resolveCurrentStatement() instead if actually needed
* @var string
*/
public const CURRENT_STATEMENT = 'currentExpression';
/**
* Internal php-parser name.
* Do not change this even if you want!
@ -88,6 +75,8 @@ final class AttributeKey
*/
public const NAMESPACED_NAME = 'namespacedName';
/**
* @api
*
* Internal php-parser name.
* Do not change this even if you want!
*
@ -127,13 +116,6 @@ final class AttributeKey
* @var string
*/
public const FUNC_ARGS_TRAILING_COMMA = 'trailing_comma';
/**
* Contains current file object
* @see \Rector\Core\ValueObject\Application\File
*
* @var string
*/
public const FILE = 'file';
/**
* Helps with infinite loop detection
* @var string

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\Parallel\ValueObject;
/**
* @api
* Helpers constant for passing constant names around
*/
final class Name
@ -36,4 +37,8 @@ final class Name
* @var string
*/
public const RECTOR_CLASS = 'rector_class';
/**
* @var string
*/
public const RECTORS_WITH_LINE_CHANGES = 'rectors_with_line_changes';
}

View File

@ -55,8 +55,8 @@ final class ExprParameterReflectionTypeCorrector
if (!$attributeClassReflection->hasConstructor()) {
return $items;
}
$constructorClassMethodReflection = $attributeClassReflection->getConstructor();
$parametersAcceptor = ParametersAcceptorSelector::selectSingle($constructorClassMethodReflection->getVariants());
$extendedMethodReflection = $attributeClassReflection->getConstructor();
$parametersAcceptor = ParametersAcceptorSelector::selectSingle($extendedMethodReflection->getVariants());
foreach ($items as $name => $item) {
foreach ($parametersAcceptor->getParameters() as $parameterReflection) {
$correctedItem = $this->correctItemByParameterReflection($name, $item, $parameterReflection);

View File

@ -4,6 +4,9 @@ declare (strict_types=1);
namespace Rector\Set\ValueObject;
use Rector\Set\Contract\SetListInterface;
/**
* @api
*/
final class LevelSetList implements SetListInterface
{
/**

View File

@ -4,6 +4,9 @@ declare (strict_types=1);
namespace Rector\Set\ValueObject;
use Rector\Set\Contract\SetListInterface;
/**
* @api
*/
final class SetList implements SetListInterface
{
/**

View File

@ -12,14 +12,17 @@ use Rector\NodeNameResolver\NodeNameResolver;
final class ArgumentAddingScope
{
/**
* @api
* @var string
*/
public const SCOPE_PARENT_CALL = 'parent_call';
/**
* @api
* @var string
*/
public const SCOPE_METHOD_CALL = 'method_call';
/**
* @api
* @var string
*/
public const SCOPE_CLASS_METHOD = 'class_method';

View File

@ -23,6 +23,7 @@ use RectorPrefix202206\Webmozart\Assert\Assert;
final class OrderAttributesRector extends AbstractRector implements ConfigurableRectorInterface
{
/**
* @api
* @var string
*/
public const ALPHABETICALLY = 'alphabetically';

View File

@ -18,6 +18,7 @@ use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
final class RemoveUnusedPrivatePropertyRector extends AbstractRector implements AllowEmptyConfigurableRectorInterface
{
/**
* @api
* @var string
*/
public const REMOVE_ASSIGN_SIDE_EFFECT = 'remove_assign_side_effect';

View File

@ -117,9 +117,12 @@ CODE_SAMPLE
/**
* @param Stmt[] $followingStmts
*/
public function isFollowingStatementStaticClosure(array $followingStmts) : bool
private function isFollowingStatementStaticClosure(array $followingStmts) : bool
{
return \count($followingStmts) > 0 && $followingStmts[0] instanceof Expression && $followingStmts[0]->expr instanceof Closure && $followingStmts[0]->expr->static;
if ($followingStmts === []) {
return \false;
}
return $followingStmts[0] instanceof Expression && $followingStmts[0]->expr instanceof Closure && $followingStmts[0]->expr->static;
}
/**
* @param Variable[] $variableUsages

View File

@ -40,6 +40,7 @@ use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
final class TypedPropertyRector extends AbstractScopeAwareRector implements AllowEmptyConfigurableRectorInterface, MinPhpVersionInterface
{
/**
* @api
* @var string
*/
public const INLINE_PUBLIC = 'inline_public';

View File

@ -36,6 +36,7 @@ use RectorPrefix202206\Webmozart\Assert\Assert;
final class DoctrineAnnotationClassToAttributeRector extends AbstractRector implements ConfigurableRectorInterface, MinPhpVersionInterface
{
/**
* @api
* @var string
*/
public const REMOVE_ANNOTATIONS = 'remove_annotations';

View File

@ -12,6 +12,7 @@ use RectorPrefix202206\Webmozart\Assert\Assert;
abstract class AbstractFalsyScalarRuleFixerRector extends AbstractRector implements ConfigurableRectorInterface
{
/**
* @api
* @var string
*/
public const TREAT_AS_NON_EMPTY = 'treat_as_non_empty';

View File

@ -28,6 +28,7 @@ use RectorPrefix202206\Webmozart\Assert\Assert;
final class AddVoidReturnTypeWhereNoReturnRector extends AbstractRector implements MinPhpVersionInterface, AllowEmptyConfigurableRectorInterface
{
/**
* @api
* @var string using phpdoc instead of a native void type can ease the migration path for consumers of code being processed.
*/
public const USE_PHPDOC = 'use_phpdoc';

View File

@ -28,6 +28,7 @@ use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
final class TypedPropertyFromAssignsRector extends AbstractRector implements AllowEmptyConfigurableRectorInterface
{
/**
* @api
* @var string
*/
public const INLINE_PUBLIC = 'inline_public';

View File

@ -16,11 +16,7 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '82b24679cd1763f610b5356684766658ab9a80fa';
/**
* @var string
*/
public const RELEASE_DATE = '2022-06-30 15:25:35';
public const PACKAGE_VERSION = 'ed92724c846790f1bab66cd81b3e20a6561694ed';
/**
* @var int
*/

View File

@ -140,19 +140,10 @@ final class Option
* @var string
*/
public const TEMPLATE_TYPE = 'template-type';
/**
* @deprecated
* @var string
*/
public const ENABLE_EDITORCONFIG = 'enable_editorconfig';
/**
* @var string
*/
public const AUTOLOAD_FILE_SHORT = 'a';
/**
* @var string
*/
public const OUTPUT_FORMAT_SHORT = 'o';
/**
* @var string
*/
@ -180,11 +171,6 @@ final class Option
* @var string
*/
public const PARALLEL_TIMEOUT_IN_SECONDS = 'parallel-timeout-in-seconds';
/**
* @deprecated Rector should not run on external unknown sources, as PHPStan needs to know about paths to reflect on those. Instead, provide the path directly.
* @var string
*/
public const FOLLOW_SYMLINKS = 'follow-symlinks';
/**
* @var string
*/

View File

@ -15,7 +15,7 @@ final class RectorAssert
* @see https://regex101.com/r/PYQaPF/1
* @var string
*/
public const CLASS_NAME_REGEX = '#^[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\\\[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*)*$#';
private const CLASS_NAME_REGEX = '#^[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*(\\\\[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*)*$#';
/**
* Assert value is valid class name
*/

View File

@ -34,11 +34,6 @@ final class MethodName
* @var string
*/
public const SET_UP = 'setUp';
/**
* Mostly used in unit tests
* @var string
*/
public const TEAR_DOWN = 'tearDown';
/**
* @var string
*/

View File

@ -3,6 +3,9 @@
declare (strict_types=1);
namespace Rector\Core\ValueObject;
/**
* @api
*/
final class PhpVersionFeature
{
/**

View File

@ -6,6 +6,7 @@ namespace Rector\Core\ValueObject\Reporting;
use RectorPrefix202206\Nette\Utils\Strings;
use Rector\ChangesReporting\ValueObject\RectorWithLineChange;
use Rector\Core\Contract\Rector\RectorInterface;
use Rector\Parallel\ValueObject\Name;
use RectorPrefix202206\Symplify\EasyParallel\Contract\SerializableInterface;
use RectorPrefix202206\Webmozart\Assert\Assert;
final class FileDiff implements SerializableInterface
@ -19,22 +20,6 @@ final class FileDiff implements SerializableInterface
* @var string
*/
private const FIRST_LINE_KEY = 'first_line';
/**
* @var string
*/
private const KEY_RELATIVE_FILE_PATH = 'relative_file_path';
/**
* @var string
*/
private const KEY_DIFF = 'diff';
/**
* @var string
*/
private const KEY_DIFF_CONSOLE_FORMATTED = 'diff_console_formatted';
/**
* @var string
*/
private const KEY_RECTORS_WITH_LINE_CHANGES = 'rectors_with_line_changes';
/**
* @readonly
* @var string
@ -110,7 +95,7 @@ final class FileDiff implements SerializableInterface
*/
public function jsonSerialize() : array
{
return [self::KEY_RELATIVE_FILE_PATH => $this->relativeFilePath, self::KEY_DIFF => $this->diff, self::KEY_DIFF_CONSOLE_FORMATTED => $this->diffConsoleFormatted, self::KEY_RECTORS_WITH_LINE_CHANGES => $this->rectorsWithLineChanges];
return [Name::RELATIVE_FILE_PATH => $this->relativeFilePath, Name::DIFF => $this->diff, Name::DIFF_CONSOLE_FORMATTED => $this->diffConsoleFormatted, Name::RECTORS_WITH_LINE_CHANGES => $this->rectorsWithLineChanges];
}
/**
* @param array<string, mixed> $json
@ -118,10 +103,10 @@ final class FileDiff implements SerializableInterface
public static function decode(array $json) : SerializableInterface
{
$rectorWithLineChanges = [];
foreach ($json[self::KEY_RECTORS_WITH_LINE_CHANGES] as $rectorWithLineChangesJson) {
foreach ($json[Name::RECTORS_WITH_LINE_CHANGES] as $rectorWithLineChangesJson) {
$rectorWithLineChanges[] = RectorWithLineChange::decode($rectorWithLineChangesJson);
}
return new self($json[self::KEY_RELATIVE_FILE_PATH], $json[self::KEY_DIFF], $json[self::KEY_DIFF_CONSOLE_FORMATTED], $rectorWithLineChanges);
return new self($json[Name::RELATIVE_FILE_PATH], $json[Name::DIFF], $json[Name::DIFF_CONSOLE_FORMATTED], $rectorWithLineChanges);
}
/**
* @template TType as object

2
vendor/autoload.php vendored
View File

@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59::getLoader();
return ComposerAutoloaderInitdd42096a89f31e5ec6822e6099fdadac::getLoader();

View File

@ -9,6 +9,7 @@ return array(
'Symplify\\RuleDocGenerator\\' => array($vendorDir . '/symplify/rule-doc-generator-contracts/src'),
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
'Symfony\\Polyfill\\Intl\\Normalizer\\' => array($vendorDir . '/symfony/polyfill-intl-normalizer'),
'Rector\\Utils\\' => array($baseDir . '/utils'),
'Rector\\Symfony\\' => array($vendorDir . '/rector/rector-symfony/src'),
'Rector\\Set\\' => array($vendorDir . '/rector/rector-downgrade-php/packages/Set'),
'Rector\\RectorInstaller\\' => array($vendorDir . '/rector/extension-installer/src'),
@ -19,7 +20,6 @@ return array(
'Rector\\Laravel\\' => array($vendorDir . '/rector/rector-laravel/src'),
'Rector\\Doctrine\\' => array($vendorDir . '/rector/rector-doctrine/src'),
'Rector\\Core\\' => array($baseDir . '/src'),
'Rector\\Compiler\\' => array($baseDir . '/utils/compiler/src'),
'Rector\\CakePHP\\' => array($vendorDir . '/rector/rector-cakephp/src'),
'Rector\\' => array($baseDir . '/packages', $baseDir . '/rules', $vendorDir . '/rector/rector-downgrade-php/src'),
'RectorPrefix202206\\Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59
class ComposerAutoloaderInitdd42096a89f31e5ec6822e6099fdadac
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitdd42096a89f31e5ec6822e6099fdadac', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitdd42096a89f31e5ec6822e6099fdadac', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitdd42096a89f31e5ec6822e6099fdadac::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInitdd42096a89f31e5ec6822e6099fdadac::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiref79d6a5171cc416cdb9a2c5a43b7aa59($fileIdentifier, $file);
composerRequiredd42096a89f31e5ec6822e6099fdadac($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59
* @param string $file
* @return void
*/
function composerRequiref79d6a5171cc416cdb9a2c5a43b7aa59($fileIdentifier, $file)
function composerRequiredd42096a89f31e5ec6822e6099fdadac($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59
class ComposerStaticInitdd42096a89f31e5ec6822e6099fdadac
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@ -28,6 +28,7 @@ class ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59
),
'R' =>
array (
'Rector\\Utils\\' => 13,
'Rector\\Symfony\\' => 15,
'Rector\\Set\\' => 11,
'Rector\\RectorInstaller\\' => 23,
@ -38,7 +39,6 @@ class ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59
'Rector\\Laravel\\' => 15,
'Rector\\Doctrine\\' => 16,
'Rector\\Core\\' => 12,
'Rector\\Compiler\\' => 16,
'Rector\\CakePHP\\' => 15,
'Rector\\' => 7,
'RectorPrefix202206\\Webmozart\\Assert\\' => 36,
@ -99,6 +99,10 @@ class ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59
array (
0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer',
),
'Rector\\Utils\\' =>
array (
0 => __DIR__ . '/../..' . '/utils',
),
'Rector\\Symfony\\' =>
array (
0 => __DIR__ . '/..' . '/rector/rector-symfony/src',
@ -140,10 +144,6 @@ class ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59
array (
0 => __DIR__ . '/../..' . '/src',
),
'Rector\\Compiler\\' =>
array (
0 => __DIR__ . '/../..' . '/utils/compiler/src',
),
'Rector\\CakePHP\\' =>
array (
0 => __DIR__ . '/..' . '/rector/rector-cakephp/src',
@ -3417,9 +3417,9 @@ class ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitdd42096a89f31e5ec6822e6099fdadac::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitdd42096a89f31e5ec6822e6099fdadac::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitdd42096a89f31e5ec6822e6099fdadac::$classMap;
}, null, ClassLoader::class);
}

View File

@ -2415,12 +2415,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "731529ed680266d638d750195df7124f2f5aea87"
"reference": "2414f8ed0cd5a2b9399f4fe216a326277be83b03"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/731529ed680266d638d750195df7124f2f5aea87",
"reference": "731529ed680266d638d750195df7124f2f5aea87",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/2414f8ed0cd5a2b9399f4fe216a326277be83b03",
"reference": "2414f8ed0cd5a2b9399f4fe216a326277be83b03",
"shasum": ""
},
"require": {
@ -2449,7 +2449,7 @@
"symplify\/rule-doc-generator": "^11.0",
"symplify\/vendor-patches": "^11.0"
},
"time": "2022-06-29T09:52:16+00:00",
"time": "2022-06-30T13:46:09+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -3324,17 +3324,17 @@
},
{
"name": "symplify\/astral",
"version": "11.0.6",
"version_normalized": "11.0.6.0",
"version": "dev-main",
"version_normalized": "dev-main",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symplify\/astral.git",
"reference": "643f89dfc5d9c081c949c96ccc5c961491388f81"
"reference": "3bbf5dab01ba741ba6cf94692f911c0bbb69369a"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symplify\/astral\/zipball\/643f89dfc5d9c081c949c96ccc5c961491388f81",
"reference": "643f89dfc5d9c081c949c96ccc5c961491388f81",
"url": "https:\/\/api.github.com\/repos\/symplify\/astral\/zipball\/3bbf5dab01ba741ba6cf94692f911c0bbb69369a",
"reference": "3bbf5dab01ba741ba6cf94692f911c0bbb69369a",
"shasum": ""
},
"require": {
@ -3345,9 +3345,9 @@
"phpstan\/phpstan": "^1.8",
"symfony\/config": "^6.0",
"symfony\/dependency-injection": "^6.0",
"symplify\/package-builder": "^11.0.6",
"symplify\/smart-file-system": "^11.0.6",
"symplify\/symplify-kernel": "^11.0.6"
"symplify\/package-builder": "^11.1",
"symplify\/smart-file-system": "^11.1",
"symplify\/symplify-kernel": "^11.1"
},
"conflict": {
"symplify\/autowire-array-parameter": "<11.0.6",
@ -3373,9 +3373,10 @@
},
"require-dev": {
"phpunit\/phpunit": "^9.5",
"symplify\/easy-testing": "^11.0.6"
"symplify\/easy-testing": "^11.1"
},
"time": "2022-06-29T14:11:51+00:00",
"time": "2022-06-30T11:01:30+00:00",
"default-branch": true,
"type": "phpstan-extension",
"extra": {
"branch-alias": {
@ -3399,7 +3400,7 @@
],
"description": "Toolking for smart daily work with AST",
"support": {
"source": "https:\/\/github.com\/symplify\/astral\/tree\/11.0.6"
"source": "https:\/\/github.com\/symplify\/astral\/tree\/main"
},
"funding": [
{
@ -3415,24 +3416,24 @@
},
{
"name": "symplify\/autowire-array-parameter",
"version": "11.0.6",
"version_normalized": "11.0.6.0",
"version": "dev-main",
"version_normalized": "dev-main",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symplify\/autowire-array-parameter.git",
"reference": "73d08325d34a2d2e3164c89e4b5c847e862b3981"
"reference": "f58e441cb64e3af3ae37c1bdf825c7f508a6f9df"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symplify\/autowire-array-parameter\/zipball\/73d08325d34a2d2e3164c89e4b5c847e862b3981",
"reference": "73d08325d34a2d2e3164c89e4b5c847e862b3981",
"url": "https:\/\/api.github.com\/repos\/symplify\/autowire-array-parameter\/zipball\/f58e441cb64e3af3ae37c1bdf825c7f508a6f9df",
"reference": "f58e441cb64e3af3ae37c1bdf825c7f508a6f9df",
"shasum": ""
},
"require": {
"nette\/utils": "^3.2",
"php": ">=8.0",
"symfony\/dependency-injection": "^6.0",
"symplify\/package-builder": "^11.0.6"
"symplify\/package-builder": "^11.1"
},
"conflict": {
"symplify\/astral": "<11.0.6",
@ -3459,7 +3460,8 @@
"require-dev": {
"phpunit\/phpunit": "^9.5"
},
"time": "2022-06-29T14:12:12+00:00",
"time": "2022-06-29T14:16:26+00:00",
"default-branch": true,
"type": "library",
"extra": {
"branch-alias": {
@ -3478,7 +3480,7 @@
],
"description": "Autowire array parameters for your Symfony applications",
"support": {
"source": "https:\/\/github.com\/symplify\/autowire-array-parameter\/tree\/11.0.6"
"source": "https:\/\/github.com\/symplify\/autowire-array-parameter\/tree\/main"
},
"funding": [
{
@ -3494,17 +3496,17 @@
},
{
"name": "symplify\/composer-json-manipulator",
"version": "11.0.6",
"version_normalized": "11.0.6.0",
"version": "dev-main",
"version_normalized": "dev-main",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symplify\/composer-json-manipulator.git",
"reference": "9223723ab219013f00fef19630d3b227d86d2fce"
"reference": "4587bbc3cd4f9a3ee0758299c6e86d6f8faef9b3"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symplify\/composer-json-manipulator\/zipball\/9223723ab219013f00fef19630d3b227d86d2fce",
"reference": "9223723ab219013f00fef19630d3b227d86d2fce",
"url": "https:\/\/api.github.com\/repos\/symplify\/composer-json-manipulator\/zipball\/4587bbc3cd4f9a3ee0758299c6e86d6f8faef9b3",
"reference": "4587bbc3cd4f9a3ee0758299c6e86d6f8faef9b3",
"shasum": ""
},
"require": {
@ -3513,9 +3515,9 @@
"symfony\/config": "^6.0",
"symfony\/dependency-injection": "^6.0",
"symfony\/filesystem": "^6.0",
"symplify\/package-builder": "^11.0.6",
"symplify\/smart-file-system": "^11.0.6",
"symplify\/symplify-kernel": "^11.0.6"
"symplify\/package-builder": "^11.1",
"symplify\/smart-file-system": "^11.1",
"symplify\/symplify-kernel": "^11.1"
},
"conflict": {
"symplify\/astral": "<11.0.6",
@ -3541,7 +3543,8 @@
"require-dev": {
"phpunit\/phpunit": "^9.5"
},
"time": "2022-06-29T14:12:38+00:00",
"time": "2022-06-29T14:16:35+00:00",
"default-branch": true,
"type": "symfony-bundle",
"extra": {
"branch-alias": {
@ -3560,7 +3563,7 @@
],
"description": "Package to load, merge and save composer.json file(s)",
"support": {
"source": "https:\/\/github.com\/symplify\/composer-json-manipulator\/tree\/11.0.6"
"source": "https:\/\/github.com\/symplify\/composer-json-manipulator\/tree\/main"
},
"funding": [
{
@ -3649,17 +3652,17 @@
},
{
"name": "symplify\/easy-testing",
"version": "11.0.6",
"version_normalized": "11.0.6.0",
"version": "dev-main",
"version_normalized": "dev-main",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symplify\/easy-testing.git",
"reference": "0ba5195dda24072304fce034e1a716c05215e622"
"reference": "850adbcb12c4ebb633c1fa543a82ec8fb9b85949"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-testing\/zipball\/0ba5195dda24072304fce034e1a716c05215e622",
"reference": "0ba5195dda24072304fce034e1a716c05215e622",
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-testing\/zipball\/850adbcb12c4ebb633c1fa543a82ec8fb9b85949",
"reference": "850adbcb12c4ebb633c1fa543a82ec8fb9b85949",
"shasum": ""
},
"require": {
@ -3668,9 +3671,9 @@
"symfony\/console": "^6.0",
"symfony\/dependency-injection": "^6.0",
"symfony\/finder": "^6.0",
"symplify\/package-builder": "^11.0.6",
"symplify\/smart-file-system": "^11.0.6",
"symplify\/symplify-kernel": "^11.0.6"
"symplify\/package-builder": "^11.1",
"symplify\/smart-file-system": "^11.1",
"symplify\/symplify-kernel": "^11.1"
},
"conflict": {
"symplify\/astral": "<11.0.6",
@ -3695,7 +3698,8 @@
"require-dev": {
"phpunit\/phpunit": "^9.5"
},
"time": "2022-06-29T14:13:16+00:00",
"time": "2022-06-29T14:16:46+00:00",
"default-branch": true,
"bin": [
"bin\/easy-testing"
],
@ -3717,7 +3721,7 @@
],
"description": "Testing made easy",
"support": {
"source": "https:\/\/github.com\/symplify\/easy-testing\/tree\/11.0.6"
"source": "https:\/\/github.com\/symplify\/easy-testing\/tree\/main"
},
"funding": [
{
@ -3733,17 +3737,17 @@
},
{
"name": "symplify\/package-builder",
"version": "11.0.6",
"version_normalized": "11.0.6.0",
"version": "dev-main",
"version_normalized": "dev-main",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symplify\/package-builder.git",
"reference": "22d5adefe2dd8b713835db958fedf7f60362ece2"
"reference": "45e5bd9996a1bcabbe27940eb0e91d3c1dbd411f"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symplify\/package-builder\/zipball\/22d5adefe2dd8b713835db958fedf7f60362ece2",
"reference": "22d5adefe2dd8b713835db958fedf7f60362ece2",
"url": "https:\/\/api.github.com\/repos\/symplify\/package-builder\/zipball\/45e5bd9996a1bcabbe27940eb0e91d3c1dbd411f",
"reference": "45e5bd9996a1bcabbe27940eb0e91d3c1dbd411f",
"shasum": ""
},
"require": {
@ -3754,8 +3758,8 @@
"symfony\/console": "^6.0",
"symfony\/dependency-injection": "^6.0",
"symfony\/finder": "^6.0",
"symplify\/easy-testing": "^11.0.6",
"symplify\/symplify-kernel": "^11.0.6"
"symplify\/easy-testing": "^11.1",
"symplify\/symplify-kernel": "^11.1"
},
"conflict": {
"symplify\/astral": "<11.0.6",
@ -3781,7 +3785,8 @@
"require-dev": {
"phpunit\/phpunit": "^9.5"
},
"time": "2022-06-29T14:13:31+00:00",
"time": "2022-06-29T14:17:03+00:00",
"default-branch": true,
"type": "library",
"extra": {
"branch-alias": {
@ -3800,7 +3805,7 @@
],
"description": "Dependency Injection, Console and Kernel toolkit for Symplify packages.",
"support": {
"source": "https:\/\/github.com\/symplify\/package-builder\/tree\/11.0.6"
"source": "https:\/\/github.com\/symplify\/package-builder\/tree\/main"
},
"funding": [
{
@ -3816,8 +3821,8 @@
},
{
"name": "symplify\/rule-doc-generator-contracts",
"version": "11.0.6",
"version_normalized": "11.0.6.0",
"version": "dev-main",
"version_normalized": "dev-main",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symplify\/rule-doc-generator-contracts.git",
@ -3857,6 +3862,7 @@
"symplify\/vendor-patches": "<11.0.6"
},
"time": "2022-06-29T14:15:06+00:00",
"default-branch": true,
"type": "library",
"extra": {
"branch-alias": {
@ -3973,8 +3979,8 @@
},
{
"name": "symplify\/smart-file-system",
"version": "11.0.6",
"version_normalized": "11.0.6.0",
"version": "dev-main",
"version_normalized": "dev-main",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symplify\/smart-file-system.git",
@ -4020,6 +4026,7 @@
"phpunit\/phpunit": "^9.5"
},
"time": "2022-06-29T14:14:58+00:00",
"default-branch": true,
"type": "library",
"extra": {
"branch-alias": {
@ -4054,27 +4061,27 @@
},
{
"name": "symplify\/symplify-kernel",
"version": "11.0.6",
"version_normalized": "11.0.6.0",
"version": "dev-main",
"version_normalized": "dev-main",
"source": {
"type": "git",
"url": "https:\/\/github.com\/symplify\/symplify-kernel.git",
"reference": "763a64c304f689f0acfd78e8973fffd97373ef5f"
"reference": "27e6b22adf9f745e2147ee7000c3b12bdb4e9798"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symplify\/symplify-kernel\/zipball\/763a64c304f689f0acfd78e8973fffd97373ef5f",
"reference": "763a64c304f689f0acfd78e8973fffd97373ef5f",
"url": "https:\/\/api.github.com\/repos\/symplify\/symplify-kernel\/zipball\/27e6b22adf9f745e2147ee7000c3b12bdb4e9798",
"reference": "27e6b22adf9f745e2147ee7000c3b12bdb4e9798",
"shasum": ""
},
"require": {
"php": ">=8.0",
"symfony\/console": "^6.0",
"symfony\/dependency-injection": "^6.0",
"symplify\/autowire-array-parameter": "^11.0.6",
"symplify\/composer-json-manipulator": "^11.0.6",
"symplify\/package-builder": "^11.0.6",
"symplify\/smart-file-system": "^11.0.6",
"symplify\/autowire-array-parameter": "^11.1",
"symplify\/composer-json-manipulator": "^11.1",
"symplify\/package-builder": "^11.1",
"symplify\/smart-file-system": "^11.1",
"webmozart\/assert": "^1.10"
},
"conflict": {
@ -4099,7 +4106,8 @@
"require-dev": {
"phpunit\/phpunit": "^9.5"
},
"time": "2022-06-29T14:14:56+00:00",
"time": "2022-06-29T14:17:17+00:00",
"default-branch": true,
"type": "library",
"extra": {
"branch-alias": {
@ -4118,7 +4126,7 @@
],
"description": "Internal Kernel for Symplify packages",
"support": {
"source": "https:\/\/github.com\/symplify\/symplify-kernel\/tree\/11.0.6"
"source": "https:\/\/github.com\/symplify\/symplify-kernel\/tree\/main"
},
"install-path": "..\/symplify\/symplify-kernel"
},

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 07ea895'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3ed7224'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c857264'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main cca34de'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 6442af0'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b3050c3'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 08ce237'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 66023de'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 731529e'));
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 07ea895'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3ed7224'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c857264'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main cca34de'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 6442af0'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b3050c3'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 08ce237'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 66023de'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 2414f8e'));
private function __construct()
{
}

View File

@ -7,16 +7,16 @@
"php": ">=8.0",
"nette\/utils": "^3.2",
"symfony\/dependency-injection": "^6.0",
"symplify\/smart-file-system": "^11.0.6",
"symplify\/smart-file-system": "^11.1",
"phpstan\/phpstan": "^1.8",
"phpstan\/phpdoc-parser": "^1.6.3",
"symfony\/config": "^6.0",
"nikic\/php-parser": "^4.14.0",
"symplify\/package-builder": "^11.0.6",
"symplify\/symplify-kernel": "^11.0.6"
"symplify\/package-builder": "^11.1",
"symplify\/symplify-kernel": "^11.1"
},
"require-dev": {
"symplify\/easy-testing": "^11.0.6",
"symplify\/easy-testing": "^11.1",
"phpunit\/phpunit": "^9.5"
},
"autoload": {

View File

@ -24,6 +24,7 @@ final class PhpDocNodeTraverser
* For subsequent visitors enterNode() will still be called on the current node and leaveNode() will also be invoked
* for the current node.
*
* @api
* @var int
*/
public const DONT_TRAVERSE_CHILDREN = 1;
@ -32,6 +33,7 @@ final class PhpDocNodeTraverser
*
* The afterTraverse() method will still be invoked.
*
* @api
* @var int
*/
public const STOP_TRAVERSAL = 2;
@ -41,6 +43,7 @@ final class PhpDocNodeTraverser
*
* For subsequent visitors leaveNode() will still be invoked for the removed node.
*
* @api
* @var int
*/
public const NODE_REMOVE = 3;
@ -51,6 +54,7 @@ final class PhpDocNodeTraverser
* For subsequent visitors enterNode() will not be called as well. leaveNode() will be invoked for visitors that has
* enterNode() method invoked.
*
* @api
* @var int
*/
public const DONT_TRAVERSE_CURRENT_AND_CHILDREN = 4;

View File

@ -6,7 +6,7 @@
"php": ">=8.0",
"nette\/utils": "^3.2",
"symfony\/dependency-injection": "^6.0",
"symplify\/package-builder": "^11.0.6"
"symplify\/package-builder": "^11.1"
},
"require-dev": {
"phpunit\/phpunit": "^9.5"

View File

@ -9,9 +9,9 @@
"symfony\/config": "^6.0",
"symfony\/dependency-injection": "^6.0",
"symfony\/filesystem": "^6.0",
"symplify\/package-builder": "^11.0.6",
"symplify\/symplify-kernel": "^11.0.6",
"symplify\/smart-file-system": "^11.0.6"
"symplify\/package-builder": "^11.1",
"symplify\/symplify-kernel": "^11.1",
"symplify\/smart-file-system": "^11.1"
},
"require-dev": {
"phpunit\/phpunit": "^9.5"

View File

@ -12,9 +12,9 @@
"symfony\/finder": "^6.0",
"symfony\/console": "^6.0",
"symfony\/dependency-injection": "^6.0",
"symplify\/package-builder": "^11.0.6",
"symplify\/smart-file-system": "^11.0.6",
"symplify\/symplify-kernel": "^11.0.6"
"symplify\/package-builder": "^11.1",
"symplify\/smart-file-system": "^11.1",
"symplify\/symplify-kernel": "^11.1"
},
"require-dev": {
"phpunit\/phpunit": "^9.5"

View File

@ -10,8 +10,8 @@
"symfony\/console": "^6.0",
"symfony\/dependency-injection": "^6.0",
"symfony\/finder": "^6.0",
"symplify\/symplify-kernel": "^11.0.6",
"symplify\/easy-testing": "^11.0.6"
"symplify\/symplify-kernel": "^11.1",
"symplify\/easy-testing": "^11.1"
},
"require-dev": {
"phpunit\/phpunit": "^9.5"

View File

@ -6,10 +6,10 @@
"php": ">=8.0",
"symfony\/console": "^6.0",
"symfony\/dependency-injection": "^6.0",
"symplify\/smart-file-system": "^11.0.6",
"symplify\/composer-json-manipulator": "^11.0.6",
"symplify\/autowire-array-parameter": "^11.0.6",
"symplify\/package-builder": "^11.0.6",
"symplify\/smart-file-system": "^11.1",
"symplify\/composer-json-manipulator": "^11.1",
"symplify\/autowire-array-parameter": "^11.1",
"symplify\/package-builder": "^11.1",
"webmozart\/assert": "^1.10"
},
"require-dev": {