Skip to content

Commit

Permalink
Fixed bug #2850 : Generic.PHP.LowerCaseKeyword complains __HALT_COMPI…
Browse files Browse the repository at this point in the history
…LER is uppercase
  • Loading branch information
gsherwood committed Feb 18, 2020
1 parent 4ed7983 commit 659bec3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
-- Thanks to Juliette Reinders Folmer for the patch
- Fixed bug #2848 : PSR12.Files.FileHeader false positive for file with mixed PHP and HTML and no file header
- Fixed bug #2849 : Generic.WhiteSpace.ScopeIndent false positive with arrow function inside array
- Fixed bug #2850 : Generic.PHP.LowerCaseKeyword complains __HALT_COMPILER is uppercase
- Fixed bug #2853 : Undefined variable error when using Info report
-- Thanks to Juliette Reinders Folmer for the patch
</notes>
Expand Down
1 change: 0 additions & 1 deletion src/Standards/Generic/Sniffs/PHP/LowerCaseKeywordSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class LowerCaseKeywordSniff implements Sniff
public function register()
{
return [
T_HALT_COMPILER,
T_ABSTRACT,
T_ARRAY,
T_AS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ class X extends Y {
}
}
FN ($x) => $x;
__HALT_COMPILER(); // An exception due to phar support.
function
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ class X extends Y {
}
}
fn ($x) => $x;
__HALT_COMPILER(); // An exception due to phar support.
function

0 comments on commit 659bec3

Please sign in to comment.