Skip to content

Commit

Permalink
PhpStorm stubs - parse them with PHP 8 parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 22, 2020
1 parent 4a886db commit 59c0423
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ services:
-
class: Roave\BetterReflection\SourceLocator\SourceStubber\PhpStormStubsSourceStubber
arguments:
phpParser: @phpParserDecorator
phpParser: @php8Parser
phpVersionId: %phpVersion%
autowired:
- Roave\BetterReflection\SourceLocator\SourceStubber\PhpStormStubsSourceStubber
Expand All @@ -1299,6 +1299,16 @@ services:
autowired:
- Roave\BetterReflection\SourceLocator\SourceStubber\ReflectionSourceStubber

php8Lexer:
class: PhpParser\Lexer\Emulative
autowired: false

php8Parser:
class: PhpParser\Parser\Php7
arguments:
lexer: @php8Lexer
autowired: false

# Error formatters

errorFormatter.raw:
Expand Down

0 comments on commit 59c0423

Please sign in to comment.