Skip to content

Commit

Permalink
Merge pull request #65 from facile-it/map-new-rules
Browse files Browse the repository at this point in the history
Map new rules from 3.47
  • Loading branch information
Jean85 authored Jan 22, 2024
2 parents b25955d + a5284c4 commit 8a207da
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
---------

## [1.2.0] - 2024-01-22
- Add new `numeric_literal_separator` rule (#65)
- Map new heredoc rules as "to be discussed" (`heredoc_closing_marker`, `multiline_string_to_heredoc`)

## [1.1.0] - 2023-12-28
- Add new risky `class_keyword` rule (#64)
NB: the rule is experimental, and relies on runtime autoload to determine if a FCQN refers to an existing class
Expand Down
1 change: 1 addition & 0 deletions src/Rules/AbstractRuleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ abstract class AbstractRuleProvider implements RulesProviderInterface
'3.32.0' => ['no_unneeded_braces'],
'3.33.0' => ['native_type_declaration_casing'],
'3.42.0' => ['class_keyword'],
'3.47.0' => ['numeric_literal_separator'],
];

/**
Expand Down
1 change: 1 addition & 0 deletions src/Rules/DefaultRulesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function getRules(): array
'not_operator_with_successor_space' => true,
'normalize_index_brace' => true,
'nullable_type_declaration' => true,
'numeric_literal_separator' => true,
'object_operator_without_whitespace' => true,
'octal_notation' => true,
'operator_linebreak' => true,
Expand Down
2 changes: 2 additions & 0 deletions tests/RulesMaintenance/RulesList.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public static function getToBeDiscussedRules(): array
'escape_implicit_backslashes',
'explicit_indirect_variable',
'global_namespace_import',
'heredoc_closing_marker', // possibly undesired?
'multiline_string_to_heredoc', // possibly undesired?
'multiline_whitespace_before_semicolons', // with new_line_for_chained_calls
'ordered_types',
'php_unit_method_casing',
Expand Down

0 comments on commit 8a207da

Please sign in to comment.