Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit d15a038

Browse files
committed
Merge branch 'develop'
# Conflicts: # tests/ConfigTest.php
2 parents e9c2164 + 2cfa25c commit d15a038

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function getContribRules()
7878
'no_multiline_whitespace_before_semicolons' => false,
7979
'no_php4_constructor' => false,
8080
'no_short_echo_tag' => true,
81-
'no_useless_else' => true,
81+
'no_useless_else' => false,
8282
'no_useless_return' => true,
8383
'not_operator_with_space' => false,
8484
'not_operator_with_successor_space' => true,

tests/ConfigTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public function providerDoesNotHaveFixerEnabled()
115115
'header_comment' => 'it is not enabled by default',
116116
'long_array_syntax' => 'it conflicts with short_array_syntax (which is enabled)',
117117
'modernize_types_casting' => 'it is a risky fixer',
118+
'no_useless_else' => 'buggy',
118119
'no_multiline_whitespace_before_semicolons' => 'we have not decided to use this one (yet)',
119120
'no_php4_constructor' => 'it changes behaviour',
120121
'not_operator_with_space' => 'we do not need leading and trailing whitespace before !',
@@ -245,7 +246,7 @@ protected function getContribRules()
245246
'no_multiline_whitespace_before_semicolons' => false,
246247
'no_php4_constructor' => false,
247248
'no_short_echo_tag' => true,
248-
'no_useless_else' => true,
249+
'no_useless_else' => false,
249250
'no_useless_return' => true,
250251
'not_operator_with_space' => false,
251252
'not_operator_with_successor_space' => true,

0 commit comments

Comments
 (0)