Skip to content

Commit

Permalink
Update reserved names in GeneratorCommand (#41441)
Browse files Browse the repository at this point in the history
Since PHP 8.0 there are new keywords, which should be reserved in GeneratorCommand class.
  • Loading branch information
zeusaadam committed Mar 11, 2022
1 parent c6fb1ee commit 6a05d15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Illuminate/Console/GeneratorCommand.php
Expand Up @@ -56,6 +56,7 @@ abstract class GeneratorCommand extends Command
'endif',
'endswitch',
'endwhile',
'enum',
'eval',
'exit',
'extends',
Expand All @@ -76,13 +77,15 @@ abstract class GeneratorCommand extends Command
'interface',
'isset',
'list',
'match',
'namespace',
'new',
'or',
'print',
'private',
'protected',
'public',
'readonly',
'require',
'require_once',
'return',
Expand Down

0 comments on commit 6a05d15

Please sign in to comment.