mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-02 17:30:50 +00:00
[CodingStyle] Trigger RemoveFinalFromConstRector (#1733)
* [CodingStyle] Trigger RemoveFinalFromConstRector * [ci-review] Rector Rectify * [ci-review] Rector Rectify * [ci-review] Rector Rectify Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
15e28c6de8
commit
cfd0d61b52
|
@ -33,12 +33,12 @@ final class PhpDocFromTypeDeclarationDecorator
|
|||
/**
|
||||
* @var class-string<ReturnTypeWillChange>
|
||||
*/
|
||||
final public const RETURN_TYPE_WILL_CHANGE_ATTRIBUTE = 'ReturnTypeWillChange';
|
||||
public const RETURN_TYPE_WILL_CHANGE_ATTRIBUTE = 'ReturnTypeWillChange';
|
||||
|
||||
/**
|
||||
* @var array<string, array<string, string[]>>
|
||||
*/
|
||||
final public const ADD_RETURN_TYPE_WILL_CHANGE = [
|
||||
public const ADD_RETURN_TYPE_WILL_CHANGE = [
|
||||
'PHPStan\Type\MixedType' => [
|
||||
'ArrayAccess' => ['offsetGet'],
|
||||
],
|
||||
|
|
|
@ -34,7 +34,7 @@ final class PhpDocInfoPrinter
|
|||
* @var string
|
||||
* @see https://regex101.com/r/Ab0Vey/1
|
||||
*/
|
||||
final public const CLOSING_DOCBLOCK_REGEX = '#\*\/(\s+)?$#';
|
||||
public const CLOSING_DOCBLOCK_REGEX = '#\*\/(\s+)?$#';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
@ -9,7 +9,7 @@ final class SilentKeyMap
|
|||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
final public const CLASS_NAMES_TO_SILENT_KEYS = [
|
||||
public const CLASS_NAMES_TO_SILENT_KEYS = [
|
||||
'Symfony\Component\Routing\Annotation\Route' => 'path',
|
||||
];
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ final class NodeTypes
|
|||
/**
|
||||
* @var array<class-string<PhpDocTagValueNode>>
|
||||
*/
|
||||
final public const TYPE_AWARE_NODES = [
|
||||
public const TYPE_AWARE_NODES = [
|
||||
VarTagValueNode::class,
|
||||
ParamTagValueNode::class,
|
||||
ReturnTagValueNode::class,
|
||||
|
@ -29,7 +29,7 @@ final class NodeTypes
|
|||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
final public const TYPE_AWARE_DOCTRINE_ANNOTATION_CLASSES = [
|
||||
public const TYPE_AWARE_DOCTRINE_ANNOTATION_CLASSES = [
|
||||
'JMS\Serializer\Annotation\Type',
|
||||
'Doctrine\ORM\Mapping\OneToMany',
|
||||
'Symfony\Component\Validator\Constraints\Choice',
|
||||
|
|
|
@ -11,26 +11,26 @@ final class PhpDocAttributeKey
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const START_AND_END = 'start_and_end';
|
||||
public const START_AND_END = 'start_and_end';
|
||||
|
||||
/**
|
||||
* Fully qualified name of identifier type class
|
||||
* @var string
|
||||
*/
|
||||
final public const RESOLVED_CLASS = 'resolved_class';
|
||||
public const RESOLVED_CLASS = 'resolved_class';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PARENT = NativePhpDocAttributeKey::PARENT;
|
||||
public const PARENT = NativePhpDocAttributeKey::PARENT;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const LAST_PHP_DOC_TOKEN_POSITION = 'last_token_position';
|
||||
public const LAST_PHP_DOC_TOKEN_POSITION = 'last_token_position';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const ORIG_NODE = NativePhpDocAttributeKey::ORIG_NODE;
|
||||
public const ORIG_NODE = NativePhpDocAttributeKey::ORIG_NODE;
|
||||
}
|
||||
|
|
|
@ -12,15 +12,15 @@ final class CacheKey
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const CONFIGURATION_HASH_KEY = 'configuration_hash';
|
||||
public const CONFIGURATION_HASH_KEY = 'configuration_hash';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const FILE_HASH_KEY = 'file_hash';
|
||||
public const FILE_HASH_KEY = 'file_hash';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DEPENDENT_FILES_KEY = 'dependency_files_key';
|
||||
public const DEPENDENT_FILES_KEY = 'dependency_files_key';
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ final class ConsoleOutputFormatter implements OutputFormatterInterface
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const NAME = 'console';
|
||||
public const NAME = 'console';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
@ -16,7 +16,7 @@ final class JsonOutputFormatter implements OutputFormatterInterface
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const NAME = 'json';
|
||||
public const NAME = 'json';
|
||||
|
||||
public function __construct(
|
||||
private readonly RectorsChangelogResolver $rectorsChangelogResolver
|
||||
|
|
|
@ -16,7 +16,7 @@ final class DocBlockUpdater
|
|||
* @var string
|
||||
* @see https://regex101.com/r/VdaVGL/1
|
||||
*/
|
||||
final public const SPACE_OR_ASTERISK_REGEX = '#(\s|\*)+#';
|
||||
public const SPACE_OR_ASTERISK_REGEX = '#(\s|\*)+#';
|
||||
|
||||
public function __construct(
|
||||
private readonly PhpDocInfoPrinter $phpDocInfoPrinter
|
||||
|
|
|
@ -9,25 +9,25 @@ final class EditorConfigOption
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const INDENT_STYLE = 'indent_style';
|
||||
public const INDENT_STYLE = 'indent_style';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const INDENT_SIZE = 'indent_size';
|
||||
public const INDENT_SIZE = 'indent_size';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const END_OF_LINE = 'end_of_line';
|
||||
public const END_OF_LINE = 'end_of_line';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const INSERT_FINAL_NEWLINE = 'insert_final_newline';
|
||||
public const INSERT_FINAL_NEWLINE = 'insert_final_newline';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const TAB_WIDTH = 'tab_width';
|
||||
public const TAB_WIDTH = 'tab_width';
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ final class Indent implements Stringable
|
|||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
final public const CHARACTERS = [
|
||||
public const CHARACTERS = [
|
||||
self::SPACE => ' ',
|
||||
self::TAB => "\t",
|
||||
];
|
||||
|
|
|
@ -17,17 +17,17 @@ final class NewLine implements Stringable
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const LINE_FEED = 'lf';
|
||||
public const LINE_FEED = 'lf';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const CARRIAGE_RETURN = 'cr';
|
||||
public const CARRIAGE_RETURN = 'cr';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const CARRIAGE_RETURN_LINE_FEED = 'crlf';
|
||||
public const CARRIAGE_RETURN_LINE_FEED = 'crlf';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -27,7 +27,7 @@ final class ControlStructure
|
|||
/**
|
||||
* @var array<class-string<FunctionLike>>
|
||||
*/
|
||||
final public const RETURN_ISOLATING_SCOPE_NODE_TYPES = [
|
||||
public const RETURN_ISOLATING_SCOPE_NODE_TYPES = [
|
||||
Function_::class,
|
||||
ClassMethod::class,
|
||||
Closure::class,
|
||||
|
@ -37,7 +37,7 @@ final class ControlStructure
|
|||
/**
|
||||
* @var array<class-string<Node>>
|
||||
*/
|
||||
final public const BREAKING_SCOPE_NODE_TYPES = [
|
||||
public const BREAKING_SCOPE_NODE_TYPES = [
|
||||
For_::class,
|
||||
Foreach_::class,
|
||||
If_::class,
|
||||
|
@ -54,7 +54,7 @@ final class ControlStructure
|
|||
* These situations happens only if condition is met
|
||||
* @var array<class-string<Node>>
|
||||
*/
|
||||
final public const CONDITIONAL_NODE_SCOPE_TYPES = [
|
||||
public const CONDITIONAL_NODE_SCOPE_TYPES = [
|
||||
If_::class,
|
||||
While_::class,
|
||||
Do_::class,
|
||||
|
|
|
@ -15,18 +15,18 @@ final class AttributeKey
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const VIRTUAL_NODE = 'virtual_node';
|
||||
public const VIRTUAL_NODE = 'virtual_node';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const SCOPE = 'scope';
|
||||
public const SCOPE = 'scope';
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const USE_NODES = 'useNodes';
|
||||
public const USE_NODES = 'useNodes';
|
||||
|
||||
/**
|
||||
* @deprecated Use
|
||||
|
@ -35,7 +35,7 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const CLASS_NAME = 'className';
|
||||
public const CLASS_NAME = 'className';
|
||||
|
||||
/**
|
||||
* @deprecated Use
|
||||
|
@ -43,7 +43,7 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const CLASS_NODE = 'class_node';
|
||||
public const CLASS_NODE = 'class_node';
|
||||
|
||||
/**
|
||||
* @deprecated Use
|
||||
|
@ -52,7 +52,7 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const METHOD_NAME = 'methodName';
|
||||
public const METHOD_NAME = 'methodName';
|
||||
|
||||
/**
|
||||
* @deprecated Use
|
||||
|
@ -60,7 +60,7 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const METHOD_NODE = 'methodNode';
|
||||
public const METHOD_NODE = 'methodNode';
|
||||
|
||||
/**
|
||||
* Internal php-parser name.
|
||||
|
@ -68,7 +68,7 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const ORIGINAL_NODE = 'origNode';
|
||||
public const ORIGINAL_NODE = 'origNode';
|
||||
|
||||
/**
|
||||
* Internal php-parser name.
|
||||
|
@ -76,7 +76,7 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const COMMENTS = 'comments';
|
||||
public const COMMENTS = 'comments';
|
||||
|
||||
/**
|
||||
* Internal php-parser name.
|
||||
|
@ -84,7 +84,7 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const ORIGINAL_NAME = 'originalName';
|
||||
public const ORIGINAL_NAME = 'originalName';
|
||||
|
||||
/**
|
||||
* Internal php-parser name. @see \PhpParser\NodeVisitor\NameResolver
|
||||
|
@ -92,38 +92,38 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const RESOLVED_NAME = 'resolvedName';
|
||||
public const RESOLVED_NAME = 'resolvedName';
|
||||
|
||||
/**
|
||||
* @internal of php-parser, do not change
|
||||
* @see https://github.com/nikic/PHP-Parser/pull/681/files
|
||||
* @var string
|
||||
*/
|
||||
final public const PARENT_NODE = 'parent';
|
||||
public const PARENT_NODE = 'parent';
|
||||
|
||||
/**
|
||||
* @internal of php-parser, do not change
|
||||
* @see https://github.com/nikic/PHP-Parser/pull/681/files
|
||||
* @var string
|
||||
*/
|
||||
final public const PREVIOUS_NODE = 'previous';
|
||||
public const PREVIOUS_NODE = 'previous';
|
||||
|
||||
/**
|
||||
* @internal of php-parser, do not change
|
||||
* @see https://github.com/nikic/PHP-Parser/pull/681/files
|
||||
* @var string
|
||||
*/
|
||||
final public const NEXT_NODE = 'next';
|
||||
public const NEXT_NODE = 'next';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PREVIOUS_STATEMENT = 'previousExpression';
|
||||
public const PREVIOUS_STATEMENT = 'previousExpression';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const CURRENT_STATEMENT = 'currentExpression';
|
||||
public const CURRENT_STATEMENT = 'currentExpression';
|
||||
|
||||
/**
|
||||
* Internal php-parser name.
|
||||
|
@ -131,7 +131,7 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const NAMESPACED_NAME = 'namespacedName';
|
||||
public const NAMESPACED_NAME = 'namespacedName';
|
||||
|
||||
/**
|
||||
* Internal php-parser name.
|
||||
|
@ -139,7 +139,7 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const DOC_INDENTATION = 'docIndentation';
|
||||
public const DOC_INDENTATION = 'docIndentation';
|
||||
|
||||
/**
|
||||
* Internal php-parser name.
|
||||
|
@ -147,48 +147,48 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const START_TOKEN_POSITION = 'startTokenPos';
|
||||
public const START_TOKEN_POSITION = 'startTokenPos';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* Use often in php-parser
|
||||
*/
|
||||
final public const KIND = 'kind';
|
||||
public const KIND = 'kind';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const IS_UNREACHABLE = 'isUnreachable';
|
||||
public const IS_UNREACHABLE = 'isUnreachable';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_DOC_INFO = 'php_doc_info';
|
||||
public const PHP_DOC_INFO = 'php_doc_info';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const IS_REGULAR_PATTERN = 'is_regular_pattern';
|
||||
public const IS_REGULAR_PATTERN = 'is_regular_pattern';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DO_NOT_CHANGE = 'do_not_change';
|
||||
public const DO_NOT_CHANGE = 'do_not_change';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PARAMETER_POSITION = 'parameter_position';
|
||||
public const PARAMETER_POSITION = 'parameter_position';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const ARGUMENT_POSITION = 'argument_position';
|
||||
public const ARGUMENT_POSITION = 'argument_position';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const FUNC_ARGS_TRAILING_COMMA = 'trailing_comma';
|
||||
public const FUNC_ARGS_TRAILING_COMMA = 'trailing_comma';
|
||||
|
||||
/**
|
||||
* Contains current file object
|
||||
|
@ -196,38 +196,38 @@ final class AttributeKey
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
final public const FILE = 'file';
|
||||
public const FILE = 'file';
|
||||
|
||||
/**
|
||||
* In case the php-doc info just changed, for reporting of changed nodes
|
||||
* @var string
|
||||
*/
|
||||
final public const HAS_PHP_DOC_INFO_JUST_CHANGED = 'has_php_doc_info_just_changed';
|
||||
public const HAS_PHP_DOC_INFO_JUST_CHANGED = 'has_php_doc_info_just_changed';
|
||||
|
||||
/**
|
||||
* Helps with infinite loop detection
|
||||
* @var string
|
||||
*/
|
||||
final public const CREATED_BY_RULE = 'created_by_rule';
|
||||
public const CREATED_BY_RULE = 'created_by_rule';
|
||||
|
||||
/**
|
||||
* Provided by PHPStan parser, depth in sense of nesting
|
||||
* @var string
|
||||
*/
|
||||
final public const STATEMENT_DEPTH = 'statementDepth';
|
||||
public const STATEMENT_DEPTH = 'statementDepth';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const HAS_NEW_INHERITED_TYPE = 'has_new_inherited_type';
|
||||
public const HAS_NEW_INHERITED_TYPE = 'has_new_inherited_type';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const WRAPPED_IN_PARENTHESES = 'wrapped_in_parentheses';
|
||||
public const WRAPPED_IN_PARENTHESES = 'wrapped_in_parentheses';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const COMMENT_CLOSURE_RETURN_MIRRORED = 'comment_closure_return_mirrored';
|
||||
public const COMMENT_CLOSURE_RETURN_MIRRORED = 'comment_closure_return_mirrored';
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ final class ArrayTypeMapper implements TypeMapperInterface
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const HAS_GENERIC_TYPE_PARENT = 'has_generic_type_parent';
|
||||
public const HAS_GENERIC_TYPE_PARENT = 'has_generic_type_parent';
|
||||
|
||||
private PHPStanStaticTypeMapper $phpStanStaticTypeMapper;
|
||||
|
||||
|
|
|
@ -12,25 +12,25 @@ final class Bridge
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const FILE_DIFFS = 'file_diffs';
|
||||
public const FILE_DIFFS = 'file_diffs';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const SYSTEM_ERRORS = 'system_errors';
|
||||
public const SYSTEM_ERRORS = 'system_errors';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const SYSTEM_ERRORS_COUNT = 'system_errors_count';
|
||||
public const SYSTEM_ERRORS_COUNT = 'system_errors_count';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const FILES = 'files';
|
||||
public const FILES = 'files';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const FILES_COUNT = 'files_count';
|
||||
public const FILES_COUNT = 'files_count';
|
||||
}
|
||||
|
|
|
@ -12,35 +12,35 @@ final class Name
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const LINE = 'line';
|
||||
public const LINE = 'line';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const MESSAGE = 'message';
|
||||
public const MESSAGE = 'message';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const RELATIVE_FILE_PATH = 'relative_file_path';
|
||||
public const RELATIVE_FILE_PATH = 'relative_file_path';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DIFF = 'diff';
|
||||
public const DIFF = 'diff';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DIFF_CONSOLE_FORMATTED = 'diff_console_formatted';
|
||||
public const DIFF_CONSOLE_FORMATTED = 'diff_console_formatted';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const APPLIED_RECTORS = 'applied_rectors';
|
||||
public const APPLIED_RECTORS = 'applied_rectors';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const RECTOR_CLASS = 'rector_class';
|
||||
public const RECTOR_CLASS = 'rector_class';
|
||||
}
|
||||
|
|
|
@ -9,5 +9,5 @@ final class DocTagNodeState
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const REMOVE_ARRAY = '__remove_array__';
|
||||
public const REMOVE_ARRAY = '__remove_array__';
|
||||
}
|
||||
|
|
|
@ -11,55 +11,55 @@ final class DowngradeLevelSetList implements SetListInterface
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_80 = __DIR__ . '/../../../config/set/level/down-to-php80.php';
|
||||
public const DOWN_TO_PHP_80 = __DIR__ . '/../../../config/set/level/down-to-php80.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_74 = __DIR__ . '/../../../config/set/level/down-to-php74.php';
|
||||
public const DOWN_TO_PHP_74 = __DIR__ . '/../../../config/set/level/down-to-php74.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_73 = __DIR__ . '/../../../config/set/level/down-to-php73.php';
|
||||
public const DOWN_TO_PHP_73 = __DIR__ . '/../../../config/set/level/down-to-php73.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_72 = __DIR__ . '/../../../config/set/level/down-to-php72.php';
|
||||
public const DOWN_TO_PHP_72 = __DIR__ . '/../../../config/set/level/down-to-php72.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_71 = __DIR__ . '/../../../config/set/level/down-to-php71.php';
|
||||
public const DOWN_TO_PHP_71 = __DIR__ . '/../../../config/set/level/down-to-php71.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_70 = __DIR__ . '/../../../config/set/level/down-to-php70.php';
|
||||
public const DOWN_TO_PHP_70 = __DIR__ . '/../../../config/set/level/down-to-php70.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_56 = __DIR__ . '/../../../config/set/level/down-to-php56.php';
|
||||
public const DOWN_TO_PHP_56 = __DIR__ . '/../../../config/set/level/down-to-php56.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_55 = __DIR__ . '/../../../config/set/level/down-to-php55.php';
|
||||
public const DOWN_TO_PHP_55 = __DIR__ . '/../../../config/set/level/down-to-php55.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_54 = __DIR__ . '/../../../config/set/level/down-to-php54.php';
|
||||
public const DOWN_TO_PHP_54 = __DIR__ . '/../../../config/set/level/down-to-php54.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_53 = __DIR__ . '/../../../config/set/level/down-to-php53.php';
|
||||
public const DOWN_TO_PHP_53 = __DIR__ . '/../../../config/set/level/down-to-php53.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DOWN_TO_PHP_52 = __DIR__ . '/../../../config/set/level/down-to-php52.php';
|
||||
public const DOWN_TO_PHP_52 = __DIR__ . '/../../../config/set/level/down-to-php52.php';
|
||||
}
|
||||
|
|
|
@ -11,55 +11,55 @@ final class DowngradeSetList implements SetListInterface
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_53 = __DIR__ . '/../../../config/set/downgrade-php53.php';
|
||||
public const PHP_53 = __DIR__ . '/../../../config/set/downgrade-php53.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_54 = __DIR__ . '/../../../config/set/downgrade-php54.php';
|
||||
public const PHP_54 = __DIR__ . '/../../../config/set/downgrade-php54.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_55 = __DIR__ . '/../../../config/set/downgrade-php55.php';
|
||||
public const PHP_55 = __DIR__ . '/../../../config/set/downgrade-php55.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_56 = __DIR__ . '/../../../config/set/downgrade-php56.php';
|
||||
public const PHP_56 = __DIR__ . '/../../../config/set/downgrade-php56.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_70 = __DIR__ . '/../../../config/set/downgrade-php70.php';
|
||||
public const PHP_70 = __DIR__ . '/../../../config/set/downgrade-php70.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_71 = __DIR__ . '/../../../config/set/downgrade-php71.php';
|
||||
public const PHP_71 = __DIR__ . '/../../../config/set/downgrade-php71.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_72 = __DIR__ . '/../../../config/set/downgrade-php72.php';
|
||||
public const PHP_72 = __DIR__ . '/../../../config/set/downgrade-php72.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_73 = __DIR__ . '/../../../config/set/downgrade-php73.php';
|
||||
public const PHP_73 = __DIR__ . '/../../../config/set/downgrade-php73.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_74 = __DIR__ . '/../../../config/set/downgrade-php74.php';
|
||||
public const PHP_74 = __DIR__ . '/../../../config/set/downgrade-php74.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_80 = __DIR__ . '/../../../config/set/downgrade-php80.php';
|
||||
public const PHP_80 = __DIR__ . '/../../../config/set/downgrade-php80.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_81 = __DIR__ . '/../../../config/set/downgrade-php81.php';
|
||||
public const PHP_81 = __DIR__ . '/../../../config/set/downgrade-php81.php';
|
||||
}
|
||||
|
|
|
@ -11,50 +11,50 @@ final class LevelSetList implements SetListInterface
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_81 = __DIR__ . '/../../../config/set/level/up-to-php81.php';
|
||||
public const UP_TO_PHP_81 = __DIR__ . '/../../../config/set/level/up-to-php81.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_80 = __DIR__ . '/../../../config/set/level/up-to-php80.php';
|
||||
public const UP_TO_PHP_80 = __DIR__ . '/../../../config/set/level/up-to-php80.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_74 = __DIR__ . '/../../../config/set/level/up-to-php74.php';
|
||||
public const UP_TO_PHP_74 = __DIR__ . '/../../../config/set/level/up-to-php74.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_73 = __DIR__ . '/../../../config/set/level/up-to-php73.php';
|
||||
public const UP_TO_PHP_73 = __DIR__ . '/../../../config/set/level/up-to-php73.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_72 = __DIR__ . '/../../../config/set/level/up-to-php72.php';
|
||||
public const UP_TO_PHP_72 = __DIR__ . '/../../../config/set/level/up-to-php72.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_71 = __DIR__ . '/../../../config/set/level/up-to-php71.php';
|
||||
public const UP_TO_PHP_71 = __DIR__ . '/../../../config/set/level/up-to-php71.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_70 = __DIR__ . '/../../../config/set/level/up-to-php70.php';
|
||||
public const UP_TO_PHP_70 = __DIR__ . '/../../../config/set/level/up-to-php70.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_56 = __DIR__ . '/../../../config/set/level/up-to-php56.php';
|
||||
public const UP_TO_PHP_56 = __DIR__ . '/../../../config/set/level/up-to-php56.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_55 = __DIR__ . '/../../../config/set/level/up-to-php55.php';
|
||||
public const UP_TO_PHP_55 = __DIR__ . '/../../../config/set/level/up-to-php55.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UP_TO_PHP_54 = __DIR__ . '/../../../config/set/level/up-to-php54.php';
|
||||
public const UP_TO_PHP_54 = __DIR__ . '/../../../config/set/level/up-to-php54.php';
|
||||
}
|
||||
|
|
|
@ -11,170 +11,170 @@ final class SetList implements SetListInterface
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DEFLUENT = __DIR__ . '/../../../config/set/defluent.php';
|
||||
public const DEFLUENT = __DIR__ . '/../../../config/set/defluent.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const ACTION_INJECTION_TO_CONSTRUCTOR_INJECTION = __DIR__ . '/../../../config/set/action-injection-to-constructor-injection.php';
|
||||
public const ACTION_INJECTION_TO_CONSTRUCTOR_INJECTION = __DIR__ . '/../../../config/set/action-injection-to-constructor-injection.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const CODE_QUALITY = __DIR__ . '/../../../config/set/code-quality.php';
|
||||
public const CODE_QUALITY = __DIR__ . '/../../../config/set/code-quality.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const CODING_STYLE = __DIR__ . '/../../../config/set/coding-style.php';
|
||||
public const CODING_STYLE = __DIR__ . '/../../../config/set/coding-style.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const DEAD_CODE = __DIR__ . '/../../../config/set/dead-code.php';
|
||||
public const DEAD_CODE = __DIR__ . '/../../../config/set/dead-code.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const FLYSYSTEM_20 = __DIR__ . '/../../../config/set/flysystem-20.php';
|
||||
public const FLYSYSTEM_20 = __DIR__ . '/../../../config/set/flysystem-20.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const FRAMEWORK_EXTRA_BUNDLE_40 = __DIR__ . '/../../../config/set/framework-extra-bundle-40.php';
|
||||
public const FRAMEWORK_EXTRA_BUNDLE_40 = __DIR__ . '/../../../config/set/framework-extra-bundle-40.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const FRAMEWORK_EXTRA_BUNDLE_50 = __DIR__ . '/../../../config/set/framework-extra-bundle-50.php';
|
||||
public const FRAMEWORK_EXTRA_BUNDLE_50 = __DIR__ . '/../../../config/set/framework-extra-bundle-50.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const GMAGICK_TO_IMAGICK = __DIR__ . '/../../../config/set/gmagick_to_imagick.php';
|
||||
public const GMAGICK_TO_IMAGICK = __DIR__ . '/../../../config/set/gmagick_to_imagick.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const MONOLOG_20 = __DIR__ . '/../../../config/set/monolog20.php';
|
||||
public const MONOLOG_20 = __DIR__ . '/../../../config/set/monolog20.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const MYSQL_TO_MYSQLI = __DIR__ . '/../../../config/set/mysql-to-mysqli.php';
|
||||
public const MYSQL_TO_MYSQLI = __DIR__ . '/../../../config/set/mysql-to-mysqli.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const NAMING = __DIR__ . '/../../../config/set/naming.php';
|
||||
public const NAMING = __DIR__ . '/../../../config/set/naming.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const ORDER = __DIR__ . '/../../../config/set/order.php';
|
||||
public const ORDER = __DIR__ . '/../../../config/set/order.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHPSPEC_30 = __DIR__ . '/../../../config/set/phpspec30.php';
|
||||
public const PHPSPEC_30 = __DIR__ . '/../../../config/set/phpspec30.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHPSPEC_40 = __DIR__ . '/../../../config/set/phpspec40.php';
|
||||
public const PHPSPEC_40 = __DIR__ . '/../../../config/set/phpspec40.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHPSPEC_TO_PHPUNIT = __DIR__ . '/../../../config/set/phpspec-to-phpunit.php';
|
||||
public const PHPSPEC_TO_PHPUNIT = __DIR__ . '/../../../config/set/phpspec-to-phpunit.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_52 = __DIR__ . '/../../../config/set/php52.php';
|
||||
public const PHP_52 = __DIR__ . '/../../../config/set/php52.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_53 = __DIR__ . '/../../../config/set/php53.php';
|
||||
public const PHP_53 = __DIR__ . '/../../../config/set/php53.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_54 = __DIR__ . '/../../../config/set/php54.php';
|
||||
public const PHP_54 = __DIR__ . '/../../../config/set/php54.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_55 = __DIR__ . '/../../../config/set/php55.php';
|
||||
public const PHP_55 = __DIR__ . '/../../../config/set/php55.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_56 = __DIR__ . '/../../../config/set/php56.php';
|
||||
public const PHP_56 = __DIR__ . '/../../../config/set/php56.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_70 = __DIR__ . '/../../../config/set/php70.php';
|
||||
public const PHP_70 = __DIR__ . '/../../../config/set/php70.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_71 = __DIR__ . '/../../../config/set/php71.php';
|
||||
public const PHP_71 = __DIR__ . '/../../../config/set/php71.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_72 = __DIR__ . '/../../../config/set/php72.php';
|
||||
public const PHP_72 = __DIR__ . '/../../../config/set/php72.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_73 = __DIR__ . '/../../../config/set/php73.php';
|
||||
public const PHP_73 = __DIR__ . '/../../../config/set/php73.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_74 = __DIR__ . '/../../../config/set/php74.php';
|
||||
public const PHP_74 = __DIR__ . '/../../../config/set/php74.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_80 = __DIR__ . '/../../../config/set/php80.php';
|
||||
public const PHP_80 = __DIR__ . '/../../../config/set/php80.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_81 = __DIR__ . '/../../../config/set/php81.php';
|
||||
public const PHP_81 = __DIR__ . '/../../../config/set/php81.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PRIVATIZATION = __DIR__ . '/../../../config/set/privatization.php';
|
||||
public const PRIVATIZATION = __DIR__ . '/../../../config/set/privatization.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const PSR_4 = __DIR__ . '/../../../config/set/psr-4.php';
|
||||
public const PSR_4 = __DIR__ . '/../../../config/set/psr-4.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPE_DECLARATION = __DIR__ . '/../../../config/set/type-declaration.php';
|
||||
public const TYPE_DECLARATION = __DIR__ . '/../../../config/set/type-declaration.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPE_DECLARATION_STRICT = __DIR__ . '/../../../config/set/type-declaration-strict.php';
|
||||
public const TYPE_DECLARATION_STRICT = __DIR__ . '/../../../config/set/type-declaration-strict.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const UNWRAP_COMPAT = __DIR__ . '/../../../config/set/unwrap-compat.php';
|
||||
public const UNWRAP_COMPAT = __DIR__ . '/../../../config/set/unwrap-compat.php';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const EARLY_RETURN = __DIR__ . '/../../../config/set/early-return.php';
|
||||
public const EARLY_RETURN = __DIR__ . '/../../../config/set/early-return.php';
|
||||
}
|
||||
|
|
|
@ -16,17 +16,17 @@ final class ArgumentAddingScope
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const SCOPE_PARENT_CALL = 'parent_call';
|
||||
public const SCOPE_PARENT_CALL = 'parent_call';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const SCOPE_METHOD_CALL = 'method_call';
|
||||
public const SCOPE_METHOD_CALL = 'method_call';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const SCOPE_CLASS_METHOD = 'class_method';
|
||||
public const SCOPE_CLASS_METHOD = 'class_method';
|
||||
|
||||
public function __construct(
|
||||
private readonly NodeNameResolver $nodeNameResolver
|
||||
|
|
|
@ -37,7 +37,7 @@ final class ArgumentAdderRector extends AbstractRector implements ConfigurableRe
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const ADDED_ARGUMENTS = 'added_arguments';
|
||||
public const ADDED_ARGUMENTS = 'added_arguments';
|
||||
|
||||
/**
|
||||
* @var ArgumentAdder[]
|
||||
|
|
|
@ -25,7 +25,7 @@ final class ReplaceArgumentDefaultValueRector extends AbstractRector implements
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const REPLACED_ARGUMENTS = 'replaced_arguments';
|
||||
public const REPLACED_ARGUMENTS = 'replaced_arguments';
|
||||
|
||||
/**
|
||||
* @var ReplaceArgumentDefaultValue[]
|
||||
|
|
|
@ -26,7 +26,7 @@ final class FunctionArgumentDefaultValueReplacerRector extends AbstractRector im
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const REPLACED_ARGUMENTS = 'replaced_arguments';
|
||||
public const REPLACED_ARGUMENTS = 'replaced_arguments';
|
||||
|
||||
/**
|
||||
* @var ReplaceFuncCallArgumentDefaultValue[]
|
||||
|
|
|
@ -23,7 +23,7 @@ final class SwapFuncCallArgumentsRector extends AbstractRector implements Config
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const FUNCTION_ARGUMENT_SWAPS = 'new_argument_positions_by_function_name';
|
||||
public const FUNCTION_ARGUMENT_SWAPS = 'new_argument_positions_by_function_name';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
@ -13,7 +13,7 @@ final class ReplaceArgumentDefaultValue implements ReplaceArgumentDefaultValueIn
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const ANY_VALUE_BEFORE = '*ANY_VALUE_BEFORE*';
|
||||
public const ANY_VALUE_BEFORE = '*ANY_VALUE_BEFORE*';
|
||||
|
||||
/**
|
||||
* @param int<0, max> $position
|
||||
|
|
|
@ -29,7 +29,7 @@ final class MoveServicesBySuffixToDirectoryRector extends AbstractRector impleme
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const GROUP_NAMES_BY_SUFFIX = 'group_names_by_suffix';
|
||||
public const GROUP_NAMES_BY_SUFFIX = 'group_names_by_suffix';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
|
|
|
@ -28,18 +28,18 @@ final class MoveValueObjectsToValueObjectDirectoryRector extends AbstractRector
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPES = 'types';
|
||||
public const TYPES = 'types';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const SUFFIXES = 'suffixes';
|
||||
public const SUFFIXES = 'suffixes';
|
||||
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
final public const ENABLE_VALUE_OBJECT_GUESSING = 'enable_value_object_guessing';
|
||||
public const ENABLE_VALUE_OBJECT_GUESSING = 'enable_value_object_guessing';
|
||||
|
||||
/**
|
||||
* @var string[]|class-string<Controller>[]
|
||||
|
|
|
@ -28,7 +28,7 @@ final class OrderAttributesRector extends AbstractRector implements Configurable
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const ATTRIBUTES_ORDER = 'attributes_order';
|
||||
public const ATTRIBUTES_ORDER = 'attributes_order';
|
||||
|
||||
/**
|
||||
* @var array<string, int>
|
||||
|
|
|
@ -33,7 +33,7 @@ final class ReturnArrayClassMethodToYieldRector extends AbstractRector implement
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const METHODS_TO_YIELDS = 'methods_to_yields';
|
||||
public const METHODS_TO_YIELDS = 'methods_to_yields';
|
||||
|
||||
/**
|
||||
* @var ReturnArrayClassMethodToyield[]
|
||||
|
|
|
@ -27,7 +27,7 @@ final class ConsistentPregDelimiterRector extends AbstractRector implements Allo
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
final public const DELIMITER = 'delimiter';
|
||||
public const DELIMITER = 'delimiter';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
@ -28,7 +28,7 @@ final class PreferThisOrSelfMethodCallRector extends AbstractRector implements C
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPE_TO_PREFERENCE = 'type_to_preference';
|
||||
public const TYPE_TO_PREFERENCE = 'type_to_preference';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
@ -11,7 +11,7 @@ final class ObjectMagicMethods
|
|||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
final public const METHOD_NAMES = [
|
||||
public const METHOD_NAMES = [
|
||||
'__call',
|
||||
'__callStatic',
|
||||
MethodName::CLONE,
|
||||
|
|
|
@ -21,7 +21,7 @@ final class AddPackageToRequireComposerRector implements ComposerRectorInterface
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PACKAGES_AND_VERSIONS = 'packages_and_versions';
|
||||
public const PACKAGES_AND_VERSIONS = 'packages_and_versions';
|
||||
|
||||
/**
|
||||
* @var PackageAndVersion[]
|
||||
|
|
|
@ -21,7 +21,7 @@ final class AddPackageToRequireDevComposerRector implements ComposerRectorInterf
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PACKAGES_AND_VERSIONS = 'packages_and_version';
|
||||
public const PACKAGES_AND_VERSIONS = 'packages_and_version';
|
||||
|
||||
/**
|
||||
* @var PackageAndVersion[]
|
||||
|
|
|
@ -21,7 +21,7 @@ final class ChangePackageVersionComposerRector implements ComposerRectorInterfac
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PACKAGES_AND_VERSIONS = 'packages_and_versions';
|
||||
public const PACKAGES_AND_VERSIONS = 'packages_and_versions';
|
||||
|
||||
/**
|
||||
* @var PackageAndVersion[]
|
||||
|
|
|
@ -19,7 +19,7 @@ final class RemovePackageComposerRector implements ComposerRectorInterface
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PACKAGE_NAMES = 'package_names';
|
||||
public const PACKAGE_NAMES = 'package_names';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
|
|
|
@ -20,7 +20,7 @@ final class RenamePackageComposerRector implements ComposerRectorInterface
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const RENAME_PACKAGES = 'rename_packages';
|
||||
public const RENAME_PACKAGES = 'rename_packages';
|
||||
|
||||
/**
|
||||
* @var RenamePackage[]
|
||||
|
|
|
@ -21,7 +21,7 @@ final class ReplacePackageAndVersionComposerRector implements ComposerRectorInte
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const REPLACE_PACKAGES_AND_VERSIONS = 'replace_packages_and_versions';
|
||||
public const REPLACE_PACKAGES_AND_VERSIONS = 'replace_packages_and_versions';
|
||||
|
||||
/**
|
||||
* @var ReplacePackageAndVersion[]
|
||||
|
|
|
@ -27,7 +27,7 @@ final class RemoveAnnotationRector extends AbstractRector implements Configurabl
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const ANNOTATIONS_TO_REMOVE = 'annotations_to_remove';
|
||||
public const ANNOTATIONS_TO_REMOVE = 'annotations_to_remove';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
|
|
|
@ -29,7 +29,7 @@ final class RemovePhpVersionIdCheckRector extends AbstractRector implements Conf
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PHP_VERSION_CONSTRAINT = 'phpVersionConstraint';
|
||||
public const PHP_VERSION_CONSTRAINT = 'phpVersionConstraint';
|
||||
|
||||
private string | int | null $phpVersionConstraint;
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@ final class VariableNodeUse
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPE_USE = 'use';
|
||||
public const TYPE_USE = 'use';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPE_ASSIGN = 'assign';
|
||||
public const TYPE_ASSIGN = 'assign';
|
||||
|
||||
public function __construct(
|
||||
private readonly int $startTokenPosition,
|
||||
|
|
|
@ -27,7 +27,7 @@ final class AddMethodParentCallRector extends AbstractRector implements Configur
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const METHODS_BY_PARENT_TYPES = 'methods_by_parent_type';
|
||||
public const METHODS_BY_PARENT_TYPES = 'methods_by_parent_type';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -33,7 +33,7 @@ final class DowngradeAttributeToAnnotationRector extends AbstractRector implemen
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const ATTRIBUTE_TO_ANNOTATION = 'attribute_to_annotation';
|
||||
public const ATTRIBUTE_TO_ANNOTATION = 'attribute_to_annotation';
|
||||
|
||||
/**
|
||||
* @var DowngradeAttributeToAnnotation[]
|
||||
|
|
|
@ -32,7 +32,7 @@ final class GenericClassMethodParamRector extends AbstractRector implements Conf
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const GENERIC_CLASS_METHOD_PARAMS = 'generic_class_method_params';
|
||||
public const GENERIC_CLASS_METHOD_PARAMS = 'generic_class_method_params';
|
||||
|
||||
/**
|
||||
* @var GenericClassMethodParam[]
|
||||
|
|
|
@ -33,7 +33,7 @@ final class StringClassNameToClassConstantRector extends AbstractRector implemen
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const CLASSES_TO_SKIP = 'classes_to_skip';
|
||||
public const CLASSES_TO_SKIP = 'classes_to_skip';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
|
|
|
@ -28,7 +28,7 @@ final class ReservedObjectRector extends AbstractRector implements ConfigurableR
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const RESERVED_KEYWORDS_TO_REPLACEMENTS = 'reserved_keywords_to_replacements';
|
||||
public const RESERVED_KEYWORDS_TO_REPLACEMENTS = 'reserved_keywords_to_replacements';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -33,7 +33,7 @@ final class AddLiteralSeparatorToNumberRector extends AbstractRector implements
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
final public const LIMIT_VALUE = 'limit_value';
|
||||
public const LIMIT_VALUE = 'limit_value';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
|
|
|
@ -46,7 +46,7 @@ final class AnnotationToAttributeRector extends AbstractRector implements Config
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const ANNOTATION_TO_ATTRIBUTE = 'annotations_to_attributes';
|
||||
public const ANNOTATION_TO_ATTRIBUTE = 'annotations_to_attributes';
|
||||
|
||||
/**
|
||||
* @var AnnotationToAttribute[]
|
||||
|
|
|
@ -41,7 +41,7 @@ final class DoctrineAnnotationClassToAttributeRector extends AbstractRector impl
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const REMOVE_ANNOTATIONS = 'remove_annotations';
|
||||
public const REMOVE_ANNOTATIONS = 'remove_annotations';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
@ -24,7 +24,7 @@ final class ReplaceStringWithClassConstantRector extends AbstractRector implemen
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const REPLACE_STRING_WITH_CLASS_CONSTANT = 'replace_string_with_class_constant';
|
||||
public const REPLACE_STRING_WITH_CLASS_CONSTANT = 'replace_string_with_class_constant';
|
||||
|
||||
/**
|
||||
* @var ReplaceStringWithClassConstant[]
|
||||
|
|
|
@ -26,7 +26,7 @@ final class ArgumentRemoverRector extends AbstractRector implements Configurable
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const REMOVED_ARGUMENTS = 'removed_arguments';
|
||||
public const REMOVED_ARGUMENTS = 'removed_arguments';
|
||||
|
||||
/**
|
||||
* @var ArgumentRemover[]
|
||||
|
|
|
@ -21,7 +21,7 @@ final class RemoveInterfacesRector extends AbstractRector implements Configurabl
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const INTERFACES_TO_REMOVE = 'interfaces_to_remove';
|
||||
public const INTERFACES_TO_REMOVE = 'interfaces_to_remove';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
|
|
|
@ -25,7 +25,7 @@ final class RemoveParentRector extends AbstractRector implements ConfigurableRec
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PARENT_TYPES_TO_REMOVE = 'parents_types_to_remove';
|
||||
public const PARENT_TYPES_TO_REMOVE = 'parents_types_to_remove';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
|
|
|
@ -23,7 +23,7 @@ final class RemoveTraitUseRector extends AbstractRector implements ConfigurableR
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const TRAITS_TO_REMOVE = 'traits_to_remove';
|
||||
public const TRAITS_TO_REMOVE = 'traits_to_remove';
|
||||
|
||||
private bool $classHasChanged = false;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ final class RemoveFuncCallArgRector extends AbstractRector implements Configurab
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const REMOVED_FUNCTION_ARGUMENTS = 'removed_function_arguments';
|
||||
public const REMOVED_FUNCTION_ARGUMENTS = 'removed_function_arguments';
|
||||
|
||||
/**
|
||||
* @var RemoveFuncCallArg[]
|
||||
|
|
|
@ -25,7 +25,7 @@ final class RemoveFuncCallRector extends AbstractRector implements ConfigurableR
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const REMOVE_FUNC_CALLS = 'remove_func_calls';
|
||||
public const REMOVE_FUNC_CALLS = 'remove_func_calls';
|
||||
|
||||
/**
|
||||
* @var RemoveFuncCall[]
|
||||
|
|
|
@ -26,7 +26,7 @@ final class RenameClassConstFetchRector extends AbstractRector implements Config
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const CLASS_CONSTANT_RENAME = 'constant_rename';
|
||||
public const CLASS_CONSTANT_RENAME = 'constant_rename';
|
||||
|
||||
/**
|
||||
* @var RenameClassConstFetchInterface[]
|
||||
|
|
|
@ -27,7 +27,7 @@ final class RenameAnnotationRector extends AbstractRector implements Configurabl
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const RENAMED_ANNOTATIONS = 'renamed_annotations';
|
||||
public const RENAMED_ANNOTATIONS = 'renamed_annotations';
|
||||
|
||||
/**
|
||||
* @var RenameAnnotationInterface[]
|
||||
|
|
|
@ -22,7 +22,7 @@ final class RenameConstantRector extends AbstractRector implements ConfigurableR
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const OLD_TO_NEW_CONSTANTS = 'old_to_new_constants';
|
||||
public const OLD_TO_NEW_CONSTANTS = 'old_to_new_constants';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -33,7 +33,7 @@ final class PseudoNamespaceToNamespaceRector extends AbstractRector implements C
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const NAMESPACE_PREFIXES_WITH_EXCLUDED_CLASSES = 'namespace_prefixed_with_excluded_classes';
|
||||
public const NAMESPACE_PREFIXES_WITH_EXCLUDED_CLASSES = 'namespace_prefixed_with_excluded_classes';
|
||||
|
||||
/**
|
||||
* @see https://regex101.com/r/chvLgs/1/
|
||||
|
|
|
@ -24,7 +24,7 @@ final class RenameFunctionRector extends AbstractRector implements ConfigurableR
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const OLD_FUNCTION_TO_NEW_FUNCTION = 'old_function_to_new_function';
|
||||
public const OLD_FUNCTION_TO_NEW_FUNCTION = 'old_function_to_new_function';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -32,7 +32,7 @@ final class RenameMethodRector extends AbstractRector implements ConfigurableRec
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const METHOD_CALL_RENAMES = 'method_call_renames';
|
||||
public const METHOD_CALL_RENAMES = 'method_call_renames';
|
||||
|
||||
/**
|
||||
* @var MethodCallRenameInterface[]
|
||||
|
|
|
@ -32,7 +32,7 @@ final class RenameClassRector extends AbstractRector implements ConfigurableRect
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const OLD_TO_NEW_CLASSES = 'old_to_new_classes';
|
||||
public const OLD_TO_NEW_CLASSES = 'old_to_new_classes';
|
||||
|
||||
public function __construct(
|
||||
private readonly RenamedClassesDataCollector $renamedClassesDataCollector,
|
||||
|
|
|
@ -30,7 +30,7 @@ final class RenameNamespaceRector extends AbstractRector implements Configurable
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const OLD_TO_NEW_NAMESPACES = 'old_to_new_namespaces';
|
||||
public const OLD_TO_NEW_NAMESPACES = 'old_to_new_namespaces';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -29,7 +29,7 @@ final class RenamePropertyRector extends AbstractRector implements ConfigurableR
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const RENAMED_PROPERTIES = 'old_to_new_property_by_types';
|
||||
public const RENAMED_PROPERTIES = 'old_to_new_property_by_types';
|
||||
|
||||
/**
|
||||
* @var RenameProperty[]
|
||||
|
|
|
@ -24,7 +24,7 @@ final class RenameStaticMethodRector extends AbstractRector implements Configura
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const OLD_TO_NEW_METHODS_BY_CLASSES = 'old_to_new_method_by_classes';
|
||||
public const OLD_TO_NEW_METHODS_BY_CLASSES = 'old_to_new_method_by_classes';
|
||||
|
||||
/**
|
||||
* @var RenameStaticMethod[]
|
||||
|
|
|
@ -23,7 +23,7 @@ final class RenameStringRector extends AbstractRector implements ConfigurableRec
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const STRING_CHANGES = 'string_changes';
|
||||
public const STRING_CHANGES = 'string_changes';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -28,7 +28,7 @@ final class CompleteImportForPartialAnnotationRector extends AbstractRector impl
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const USE_IMPORTS_TO_RESTORE = '$useImportsToRestore';
|
||||
public const USE_IMPORTS_TO_RESTORE = '$useImportsToRestore';
|
||||
|
||||
/**
|
||||
* @var CompleteImportForPartialAnnotation[]
|
||||
|
|
|
@ -26,7 +26,7 @@ final class DimFetchAssignToMethodCallRector extends AbstractRector implements C
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const DIM_FETCH_ASSIGN_TO_METHOD_CALL = 'dim_fetch_assign_to_method_call';
|
||||
public const DIM_FETCH_ASSIGN_TO_METHOD_CALL = 'dim_fetch_assign_to_method_call';
|
||||
|
||||
/**
|
||||
* @var DimFetchAssignToMethodCall[]
|
||||
|
|
|
@ -30,7 +30,7 @@ final class GetAndSetToMethodCallRector extends AbstractRector implements Config
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPE_TO_METHOD_CALLS = 'type_to_method_calls';
|
||||
public const TYPE_TO_METHOD_CALLS = 'type_to_method_calls';
|
||||
|
||||
/**
|
||||
* @var GetAndSetToMethodCall[]
|
||||
|
|
|
@ -24,7 +24,7 @@ final class PropertyAssignToMethodCallRector extends AbstractRector implements C
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PROPERTY_ASSIGNS_TO_METHODS_CALLS = 'property_assigns_to_methods_calls';
|
||||
public const PROPERTY_ASSIGNS_TO_METHODS_CALLS = 'property_assigns_to_methods_calls';
|
||||
|
||||
/**
|
||||
* @var PropertyAssignToMethodCall[]
|
||||
|
|
|
@ -25,7 +25,7 @@ final class PropertyFetchToMethodCallRector extends AbstractRector implements Co
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PROPERTIES_TO_METHOD_CALLS = 'properties_to_method_calls';
|
||||
public const PROPERTIES_TO_METHOD_CALLS = 'properties_to_method_calls';
|
||||
|
||||
/**
|
||||
* @var PropertyFetchToMethodCall[]
|
||||
|
|
|
@ -25,7 +25,7 @@ final class AttributeKeyToClassConstFetchRector extends AbstractRector implement
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const ATTRIBUTE_KEYS_TO_CLASS_CONST_FETCHES = 'attribute_keys_to_class_const_fetches';
|
||||
public const ATTRIBUTE_KEYS_TO_CLASS_CONST_FETCHES = 'attribute_keys_to_class_const_fetches';
|
||||
|
||||
/**
|
||||
* @var AttributeKeyToClassConstFetch[]
|
||||
|
|
|
@ -29,7 +29,7 @@ final class SingleToManyMethodRector extends AbstractRector implements Configura
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const SINGLES_TO_MANY_METHODS = 'singles_to_many_methods';
|
||||
public const SINGLES_TO_MANY_METHODS = 'singles_to_many_methods';
|
||||
|
||||
/**
|
||||
* @var SingleToManyMethod[]
|
||||
|
|
|
@ -25,7 +25,7 @@ final class WrapReturnRector extends AbstractRector implements ConfigurableRecto
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPE_METHOD_WRAPS = 'type_method_wraps';
|
||||
public const TYPE_METHOD_WRAPS = 'type_method_wraps';
|
||||
|
||||
/**
|
||||
* @var WrapReturn[]
|
||||
|
|
|
@ -25,7 +25,7 @@ final class AddInterfaceByParentRector extends AbstractRector implements Configu
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const INTERFACE_BY_PARENT = 'interface_by_parent';
|
||||
public const INTERFACE_BY_PARENT = 'interface_by_parent';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -25,7 +25,7 @@ final class AddInterfaceByTraitRector extends AbstractRector implements Configur
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const INTERFACE_BY_TRAIT = 'interface_by_trait';
|
||||
public const INTERFACE_BY_TRAIT = 'interface_by_trait';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -27,7 +27,7 @@ final class MergeInterfacesRector extends AbstractRector implements Configurable
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const OLD_TO_NEW_INTERFACES = 'old_to_new_interfaces';
|
||||
public const OLD_TO_NEW_INTERFACES = 'old_to_new_interfaces';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -28,7 +28,7 @@ final class ParentClassToTraitsRector extends AbstractRector implements Configur
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PARENT_CLASS_TO_TRAITS = 'parent_class_to_traits';
|
||||
public const PARENT_CLASS_TO_TRAITS = 'parent_class_to_traits';
|
||||
|
||||
/**
|
||||
* @var ParentClassToTraits[]
|
||||
|
|
|
@ -36,7 +36,7 @@ final class ArgumentFuncCallToMethodCallRector extends AbstractRector implements
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const FUNCTIONS_TO_METHOD_CALLS = 'functions_to_method_calls';
|
||||
public const FUNCTIONS_TO_METHOD_CALLS = 'functions_to_method_calls';
|
||||
|
||||
/**
|
||||
* @var ArgumentFuncCallToMethodCallInterface[]
|
||||
|
|
|
@ -23,7 +23,7 @@ final class FuncCallToConstFetchRector extends AbstractRector implements Configu
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const FUNCTIONS_TO_CONSTANTS = 'functions_to_constants';
|
||||
public const FUNCTIONS_TO_CONSTANTS = 'functions_to_constants';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
|
|
|
@ -25,7 +25,7 @@ final class FuncCallToMethodCallRector extends AbstractRector implements Configu
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const FUNC_CALL_TO_CLASS_METHOD_CALL = 'function_to_class_to_method_call';
|
||||
public const FUNC_CALL_TO_CLASS_METHOD_CALL = 'function_to_class_to_method_call';
|
||||
|
||||
/**
|
||||
* @var FuncCallToMethodCall[]
|
||||
|
|
|
@ -23,7 +23,7 @@ final class FuncCallToNewRector extends AbstractRector implements ConfigurableRe
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const FUNCTIONS_TO_NEWS = 'functions_to_news';
|
||||
public const FUNCTIONS_TO_NEWS = 'functions_to_news';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
|
|
|
@ -22,7 +22,7 @@ final class FuncCallToStaticCallRector extends AbstractRector implements Configu
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const FUNC_CALLS_TO_STATIC_CALLS = 'func_calls_to_static_calls';
|
||||
public const FUNC_CALLS_TO_STATIC_CALLS = 'func_calls_to_static_calls';
|
||||
|
||||
/**
|
||||
* @var FuncCallToStaticCall[]
|
||||
|
|
|
@ -24,7 +24,7 @@ final class UnsetAndIssetToMethodCallRector extends AbstractRector implements Co
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const ISSET_UNSET_TO_METHOD_CALL = 'isset_unset_to_method_call';
|
||||
public const ISSET_UNSET_TO_METHOD_CALL = 'isset_unset_to_method_call';
|
||||
|
||||
/**
|
||||
* @var UnsetAndIssetToMethodCall[]
|
||||
|
|
|
@ -28,7 +28,7 @@ final class CallableInMethodCallToVariableRector extends AbstractRector implemen
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const CALLABLE_IN_METHOD_CALL_TO_VARIABLE = 'callable_in_method_call_to_variable';
|
||||
public const CALLABLE_IN_METHOD_CALL_TO_VARIABLE = 'callable_in_method_call_to_variable';
|
||||
|
||||
/**
|
||||
* @var CallableInMethodCallToVariable[]
|
||||
|
|
|
@ -23,7 +23,7 @@ final class MethodCallToAnotherMethodCallWithArgumentsRector extends AbstractRec
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const METHOD_CALL_RENAMES_WITH_ADDED_ARGUMENTS = 'method_call_renames_with_added_arguments';
|
||||
public const METHOD_CALL_RENAMES_WITH_ADDED_ARGUMENTS = 'method_call_renames_with_added_arguments';
|
||||
|
||||
/**
|
||||
* @var MethodCallToAnotherMethodCallWithArguments[]
|
||||
|
|
|
@ -30,7 +30,7 @@ final class MethodCallToMethodCallRector extends AbstractRector implements Confi
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const METHOD_CALLS_TO_METHOD_CALLS = 'method_calls_to_method_calls';
|
||||
public const METHOD_CALLS_TO_METHOD_CALLS = 'method_calls_to_method_calls';
|
||||
|
||||
/**
|
||||
* @var MethodCallToMethodCall[]
|
||||
|
|
|
@ -22,7 +22,7 @@ final class MethodCallToPropertyFetchRector extends AbstractRector implements Co
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const METHOD_CALL_TO_PROPERTY_FETCHES = 'method_call_to_property_fetch_collection';
|
||||
public const METHOD_CALL_TO_PROPERTY_FETCHES = 'method_call_to_property_fetch_collection';
|
||||
|
||||
/**
|
||||
* @var array<string, string>
|
||||
|
|
|
@ -22,7 +22,7 @@ final class MethodCallToStaticCallRector extends AbstractRector implements Confi
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const METHOD_CALLS_TO_STATIC_CALLS = 'method_calls_to_static_calls';
|
||||
public const METHOD_CALLS_TO_STATIC_CALLS = 'method_calls_to_static_calls';
|
||||
|
||||
/**
|
||||
* @var MethodCallToStaticCall[]
|
||||
|
|
|
@ -22,7 +22,7 @@ final class ReplaceParentCallByPropertyCallRector extends AbstractRector impleme
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const PARENT_CALLS_TO_PROPERTIES = 'parent_calls_to_properties';
|
||||
public const PARENT_CALLS_TO_PROPERTIES = 'parent_calls_to_properties';
|
||||
|
||||
/**
|
||||
* @var ReplaceParentCallByPropertyCall[]
|
||||
|
|
|
@ -31,7 +31,7 @@ final class ServiceGetterToConstructorInjectionRector extends AbstractRector imp
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const METHOD_CALL_TO_SERVICES = 'method_call_to_services';
|
||||
public const METHOD_CALL_TO_SERVICES = 'method_call_to_services';
|
||||
|
||||
/**
|
||||
* @var ServiceGetterToConstructorInjection[]
|
||||
|
|
|
@ -26,7 +26,7 @@ final class NewArgToMethodCallRector extends AbstractRector implements Configura
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const NEW_ARGS_TO_METHOD_CALLS = 'new_args_to_method_calls';
|
||||
public const NEW_ARGS_TO_METHOD_CALLS = 'new_args_to_method_calls';
|
||||
|
||||
/**
|
||||
* @var NewArgToMethodCall[]
|
||||
|
|
|
@ -32,7 +32,7 @@ final class NewToConstructorInjectionRector extends AbstractRector implements Co
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPES_TO_CONSTRUCTOR_INJECTION = 'types_to_constructor_injection';
|
||||
public const TYPES_TO_CONSTRUCTOR_INJECTION = 'types_to_constructor_injection';
|
||||
|
||||
/**
|
||||
* @var ObjectType[]
|
||||
|
|
|
@ -30,7 +30,7 @@ final class NewToMethodCallRector extends AbstractRector implements Configurable
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const NEWS_TO_METHOD_CALLS = 'news_to_method_calls';
|
||||
public const NEWS_TO_METHOD_CALLS = 'news_to_method_calls';
|
||||
|
||||
/**
|
||||
* @var NewToMethodCall[]
|
||||
|
|
|
@ -22,7 +22,7 @@ final class NewToStaticCallRector extends AbstractRector implements Configurable
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const TYPE_TO_STATIC_CALLS = 'type_to_static_calls';
|
||||
public const TYPE_TO_STATIC_CALLS = 'type_to_static_calls';
|
||||
|
||||
/**
|
||||
* @var NewToStaticCall[]
|
||||
|
|
|
@ -24,7 +24,7 @@ final class StaticCallToFuncCallRector extends AbstractRector implements Configu
|
|||
* @deprecated
|
||||
* @var string
|
||||
*/
|
||||
final public const STATIC_CALLS_TO_FUNCTIONS = 'static_calls_to_functions';
|
||||
public const STATIC_CALLS_TO_FUNCTIONS = 'static_calls_to_functions';
|
||||
|
||||
/**
|
||||
* @param StaticCallToFuncCall[] $staticCallsToFunctions
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user