Skip to content

Commit 34c97c9

Browse files
committed
refact - add more reserved keywords to rule
1 parent 7e6af47 commit 34c97c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fmt.stub.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6346,7 +6346,9 @@ final class PSR2KeywordsLowerCase extends FormatterPass {
63466346
'throw' => 1, 'trait' => 1, 'try' => 1,
63476347
'unset' => 1, 'use' => 1, 'var' => 1,
63486348
'while' => 1, 'xor' => 1,
6349-
'match' => 1, 'readonly' => 1
6349+
'match' => 1, 'readonly' => 1,
6350+
// don't dare to add "enum", it can create troubles
6351+
'fn' => 1, 'yield' => 1, 'self' => 1, 'parent' => 1,
63506352
];
63516353

63526354
public function candidate($source, $foundTokens) {

0 commit comments

Comments
 (0)