File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
CodeSniffer/Standards/Squiz/Tests/PHP Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ switch ($var) {
134
134
}
135
135
136
136
defined ('FOO ' ) or die ('error ' );
137
+ defined ('FOO ' ) || die ('error ' );
137
138
interface myInterface {
138
139
function myFunc ();
139
140
}
Original file line number Diff line number Diff line change @@ -76,16 +76,16 @@ public function getWarningList()
76
76
95 => 1 ,
77
77
105 => 1 ,
78
78
123 => 1 ,
79
- 146 => 1 ,
80
- 149 => 1 ,
81
- 152 => 1 ,
82
- 165 => 1 ,
83
- 179 => 1 ,
84
- 221 => 1 ,
79
+ 147 => 1 ,
80
+ 150 => 1 ,
81
+ 153 => 1 ,
82
+ 166 => 1 ,
83
+ 180 => 1 ,
85
84
222 => 1 ,
86
85
223 => 1 ,
87
- 224 => 2 ,
88
- 228 => 1 ,
86
+ 224 => 1 ,
87
+ 225 => 2 ,
88
+ 229 => 1 ,
89
89
);
90
90
91
91
}//end getWarningList()
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ http://pear.php.net/dtd/package-2.0.xsd">
46
46
- Fixed bug #973 : Anonymous class declaration and PSR1.Files.SideEffects.FoundWithSymbols
47
47
- Fixed bug #974 : Error when file ends with "function"
48
48
- Fixed bug #979 : Anonymous function with return type hint is not refactored as expected
49
- - Fixed bug #893 : Squiz.WhiteSpace.MemberVarSpacing.AfterComment fails to fix error when comment is not a docblock
49
+ - Fixed bug #983 : Squiz.WhiteSpace.MemberVarSpacing.AfterComment fails to fix error when comment is not a docblock
50
+ - Fixed bug #1010 : Squiz NonExectuableCode sniff does not detect boolean OR
51
+ -- Thanks to Derek Henderson for the patch
50
52
</notes >
51
53
<contents >
52
54
<dir name =" /" >
You can’t perform that action at this time.
0 commit comments