Skip to content

Commit 6a05d15

Browse files
authored
Update reserved names in GeneratorCommand (#41441)
Since PHP 8.0 there are new keywords, which should be reserved in GeneratorCommand class.
1 parent c6fb1ee commit 6a05d15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Illuminate/Console/GeneratorCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ abstract class GeneratorCommand extends Command
5656
'endif',
5757
'endswitch',
5858
'endwhile',
59+
'enum',
5960
'eval',
6061
'exit',
6162
'extends',
@@ -76,13 +77,15 @@ abstract class GeneratorCommand extends Command
7677
'interface',
7778
'isset',
7879
'list',
80+
'match',
7981
'namespace',
8082
'new',
8183
'or',
8284
'print',
8385
'private',
8486
'protected',
8587
'public',
88+
'readonly',
8689
'require',
8790
'require_once',
8891
'return',

0 commit comments

Comments
 (0)