Skip to content

Commit

Permalink
relaxplus: Add multiline_comment_opening_closing
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 30, 2024
1 parent 1ad0279 commit 57c0ac8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/RuleSet/Sets/RelaxPlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function mainRules(): array
return [
'assign_null_coalescing_to_coalesce_equal' => true,
'explicit_string_variable' => true,
'multiline_comment_opening_closing' => true,
'no_superfluous_elseif' => true,
'numeric_literal_separator' => ['override_existing' => true],
'php_unit_fqcn_annotation' => true,
Expand Down
5 changes: 5 additions & 0 deletions tests/Fixtures/Ruleset/relaxplus_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ public function basic__numeric_literal_separator()
echo 1234_5678;
}

/******
* Multiline comment with arbitrary asterisks count
******/
public function comment__multiline_comment_opening_closing() {}

public function control_structure__no_superfluous_elseif()
{
if (true) {
Expand Down
5 changes: 5 additions & 0 deletions tests/Fixtures/Ruleset/relaxplus_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ public function basic__numeric_literal_separator()
echo 12_345_678;
}

/*
* Multiline comment with arbitrary asterisks count
*/
public function comment__multiline_comment_opening_closing() {}

public function control_structure__no_superfluous_elseif()
{
if (true) {
Expand Down

0 comments on commit 57c0ac8

Please sign in to comment.