Skip to content

Commit

Permalink
null coalesce equal operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoll committed Oct 1, 2020
1 parent 26f1806 commit 4e9e25a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MO4/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithParentheses"/>
<!-- Require usage of null coalesce operator when possible -->
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/>
<!-- Require usage of null coalesce equal operator when possible -->
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator"/>
<!-- Require usage of ternary operator when possible -->
<rule ref="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator">
<!-- But multiline is useful for readability -->
Expand Down

0 comments on commit 4e9e25a

Please sign in to comment.