From 6a05d150eb828c852960517f9d15d99ea42f0f41 Mon Sep 17 00:00:00 2001 From: zeusaadam <56475876+zeusaadam@users.noreply.github.com> Date: Fri, 11 Mar 2022 16:45:27 +0100 Subject: [PATCH] Update reserved names in GeneratorCommand (#41441) Since PHP 8.0 there are new keywords, which should be reserved in GeneratorCommand class. --- src/Illuminate/Console/GeneratorCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Illuminate/Console/GeneratorCommand.php b/src/Illuminate/Console/GeneratorCommand.php index 5c12e05ed094..68ffc57ceca3 100644 --- a/src/Illuminate/Console/GeneratorCommand.php +++ b/src/Illuminate/Console/GeneratorCommand.php @@ -56,6 +56,7 @@ abstract class GeneratorCommand extends Command 'endif', 'endswitch', 'endwhile', + 'enum', 'eval', 'exit', 'extends', @@ -76,6 +77,7 @@ abstract class GeneratorCommand extends Command 'interface', 'isset', 'list', + 'match', 'namespace', 'new', 'or', @@ -83,6 +85,7 @@ abstract class GeneratorCommand extends Command 'private', 'protected', 'public', + 'readonly', 'require', 'require_once', 'return',