Skip to content

Commit edb438a

Browse files
Add predefined_constants to reservedNames array (#42832)
* Add predefined_constants to reservedNames array * Fix style
1 parent a093f92 commit edb438a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Illuminate/Console/GeneratorCommand.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ abstract class GeneratorCommand extends Command
100100
'while',
101101
'xor',
102102
'yield',
103+
'__CLASS__',
104+
'__DIR__',
105+
'__FILE__',
106+
'__FUNCTION__',
107+
'__LINE__',
108+
'__METHOD__',
109+
'__NAMESPACE__',
110+
'__TRAIT__',
103111
];
104112

105113
/**

0 commit comments

Comments
 (0)