Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/BetterPhpDocParser/Printer/PhpDocInfoPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class PhpDocInfoPrinter
* @var string
* @see https://regex101.com/r/Ab0Vey/1
*/
public const CLOSING_DOCBLOCK_REGEX = '#\*\/(\s+)?$#';
final public const CLOSING_DOCBLOCK_REGEX = '#\*\/(\s+)?$#';

/**
* @var string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ final class SilentKeyMap
/**
* @var array<string, string>
*/
public const CLASS_NAMES_TO_SILENT_KEYS = [
final public const CLASS_NAMES_TO_SILENT_KEYS = [
'Symfony\Component\Routing\Annotation\Route' => 'path',
];
}
4 changes: 2 additions & 2 deletions packages/BetterPhpDocParser/ValueObject/NodeTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class NodeTypes
/**
* @var array<class-string<PhpDocTagValueNode>>
*/
public const TYPE_AWARE_NODES = [
final public const TYPE_AWARE_NODES = [
VarTagValueNode::class,
ParamTagValueNode::class,
ReturnTagValueNode::class,
Expand All @@ -29,7 +29,7 @@ final class NodeTypes
/**
* @var string[]
*/
public const TYPE_AWARE_DOCTRINE_ANNOTATION_CLASSES = [
final public const TYPE_AWARE_DOCTRINE_ANNOTATION_CLASSES = [
'JMS\Serializer\Annotation\Type',
'Doctrine\ORM\Mapping\OneToMany',
'Symfony\Component\Validator\Constraints\Choice',
Expand Down
10 changes: 5 additions & 5 deletions packages/BetterPhpDocParser/ValueObject/PhpDocAttributeKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ final class PhpDocAttributeKey
/**
* @var string
*/
public const START_AND_END = 'start_and_end';
final public const START_AND_END = 'start_and_end';

/**
* Fully qualified name of identifier type class
* @var string
*/
public const RESOLVED_CLASS = 'resolved_class';
final public const RESOLVED_CLASS = 'resolved_class';

/**
* @var string
*/
public const PARENT = NativePhpDocAttributeKey::PARENT;
final public const PARENT = NativePhpDocAttributeKey::PARENT;

/**
* @var string
*/
public const LAST_PHP_DOC_TOKEN_POSITION = 'last_token_position';
final public const LAST_PHP_DOC_TOKEN_POSITION = 'last_token_position';

/**
* @var string
*/
public const ORIG_NODE = NativePhpDocAttributeKey::ORIG_NODE;
final public const ORIG_NODE = NativePhpDocAttributeKey::ORIG_NODE;
}
6 changes: 3 additions & 3 deletions packages/Caching/Enum/CacheKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ final class CacheKey
/**
* @var string
*/
public const CONFIGURATION_HASH_KEY = 'configuration_hash';
final public const CONFIGURATION_HASH_KEY = 'configuration_hash';

/**
* @var string
*/
public const FILE_HASH_KEY = 'file_hash';
final public const FILE_HASH_KEY = 'file_hash';

/**
* @var string
*/
public const DEPENDENT_FILES_KEY = 'dependency_files_key';
final public const DEPENDENT_FILES_KEY = 'dependency_files_key';
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class ConsoleOutputFormatter implements OutputFormatterInterface
/**
* @var string
*/
public const NAME = 'console';
final public const NAME = 'console';

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion packages/ChangesReporting/Output/JsonOutputFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class JsonOutputFormatter implements OutputFormatterInterface
/**
* @var string
*/
public const NAME = 'json';
final public const NAME = 'json';

public function __construct(
private readonly RectorsChangelogResolver $rectorsChangelogResolver
Expand Down
2 changes: 1 addition & 1 deletion packages/Comments/NodeDocBlock/DocBlockUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class DocBlockUpdater
* @var string
* @see https://regex101.com/r/VdaVGL/1
*/
public const SPACE_OR_ASTERISK_REGEX = '#(\s|\*)+#';
final public const SPACE_OR_ASTERISK_REGEX = '#(\s|\*)+#';

public function __construct(
private readonly PhpDocInfoPrinter $phpDocInfoPrinter
Expand Down
10 changes: 5 additions & 5 deletions packages/FileFormatter/ValueObject/EditorConfigOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ final class EditorConfigOption
/**
* @var string
*/
public const INDENT_STYLE = 'indent_style';
final public const INDENT_STYLE = 'indent_style';

/**
* @var string
*/
public const INDENT_SIZE = 'indent_size';
final public const INDENT_SIZE = 'indent_size';

/**
* @var string
*/
public const END_OF_LINE = 'end_of_line';
final public const END_OF_LINE = 'end_of_line';

/**
* @var string
*/
public const INSERT_FINAL_NEWLINE = 'insert_final_newline';
final public const INSERT_FINAL_NEWLINE = 'insert_final_newline';

/**
* @var string
*/
public const TAB_WIDTH = 'tab_width';
final public const TAB_WIDTH = 'tab_width';
}
2 changes: 1 addition & 1 deletion packages/FileFormatter/ValueObject/Indent.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class Indent implements Stringable
/**
* @var array<string, string>
*/
public const CHARACTERS = [
final public const CHARACTERS = [
self::SPACE => ' ',
self::TAB => "\t",
];
Expand Down
6 changes: 3 additions & 3 deletions packages/FileFormatter/ValueObject/NewLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ final class NewLine implements Stringable
/**
* @var string
*/
public const LINE_FEED = 'lf';
final public const LINE_FEED = 'lf';

/**
* @var string
*/
public const CARRIAGE_RETURN = 'cr';
final public const CARRIAGE_RETURN = 'cr';

/**
* @var string
*/
public const CARRIAGE_RETURN_LINE_FEED = 'crlf';
final public const CARRIAGE_RETURN_LINE_FEED = 'crlf';

/**
* @var array<string, string>
Expand Down
6 changes: 3 additions & 3 deletions packages/NodeNestingScope/ValueObject/ControlStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class ControlStructure
/**
* @var array<class-string<FunctionLike>>
*/
public const RETURN_ISOLATING_SCOPE_NODE_TYPES = [
final public const RETURN_ISOLATING_SCOPE_NODE_TYPES = [
Function_::class,
ClassMethod::class,
Closure::class,
Expand All @@ -37,7 +37,7 @@ final class ControlStructure
/**
* @var array<class-string<Node>>
*/
public const BREAKING_SCOPE_NODE_TYPES = [
final public const BREAKING_SCOPE_NODE_TYPES = [
For_::class,
Foreach_::class,
If_::class,
Expand All @@ -54,7 +54,7 @@ final class ControlStructure
* These situations happens only if condition is met
* @var array<class-string<Node>>
*/
public const CONDITIONAL_NODE_SCOPE_TYPES = [
final public const CONDITIONAL_NODE_SCOPE_TYPES = [
If_::class,
While_::class,
Do_::class,
Expand Down
Loading