Skip to content

Commit 659bec3

Browse files
committed
Fixed bug #2850 : Generic.PHP.LowerCaseKeyword complains __HALT_COMPILER is uppercase
1 parent 4ed7983 commit 659bec3

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
3030
-- Thanks to Juliette Reinders Folmer for the patch
3131
- Fixed bug #2848 : PSR12.Files.FileHeader false positive for file with mixed PHP and HTML and no file header
3232
- Fixed bug #2849 : Generic.WhiteSpace.ScopeIndent false positive with arrow function inside array
33+
- Fixed bug #2850 : Generic.PHP.LowerCaseKeyword complains __HALT_COMPILER is uppercase
3334
- Fixed bug #2853 : Undefined variable error when using Info report
3435
-- Thanks to Juliette Reinders Folmer for the patch
3536
</notes>

src/Standards/Generic/Sniffs/PHP/LowerCaseKeywordSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class LowerCaseKeywordSniff implements Sniff
2525
public function register()
2626
{
2727
return [
28-
T_HALT_COMPILER,
2928
T_ABSTRACT,
3029
T_ARRAY,
3130
T_AS,

src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ class X extends Y {
2929
}
3030
}
3131
FN ($x) => $x;
32+
__HALT_COMPILER(); // An exception due to phar support.
3233
function

src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ class X extends Y {
2929
}
3030
}
3131
fn ($x) => $x;
32+
__HALT_COMPILER(); // An exception due to phar support.
3233
function

0 commit comments

Comments
 (0)