Skip to content

Commit 59c0423

Browse files
committed
PhpStorm stubs - parse them with PHP 8 parser
1 parent 4a886db commit 59c0423

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

conf/config.neon

+11-1
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ services:
12891289
-
12901290
class: Roave\BetterReflection\SourceLocator\SourceStubber\PhpStormStubsSourceStubber
12911291
arguments:
1292-
phpParser: @phpParserDecorator
1292+
phpParser: @php8Parser
12931293
phpVersionId: %phpVersion%
12941294
autowired:
12951295
- Roave\BetterReflection\SourceLocator\SourceStubber\PhpStormStubsSourceStubber
@@ -1299,6 +1299,16 @@ services:
12991299
autowired:
13001300
- Roave\BetterReflection\SourceLocator\SourceStubber\ReflectionSourceStubber
13011301

1302+
php8Lexer:
1303+
class: PhpParser\Lexer\Emulative
1304+
autowired: false
1305+
1306+
php8Parser:
1307+
class: PhpParser\Parser\Php7
1308+
arguments:
1309+
lexer: @php8Lexer
1310+
autowired: false
1311+
13021312
# Error formatters
13031313

13041314
errorFormatter.raw:

0 commit comments

Comments
 (0)