Skip to content

Commit

Permalink
Stub validator - PhpParser classes are known without extra stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 20, 2023
1 parent d004c23 commit 3e498e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/PhpDoc/StubSourceLocatorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public function create(): SourceLocator
'PHPStan\\' => [dirname(__DIR__) . '/'],
]),
);
$locators[] = $this->optimizedPsrAutoloaderLocatorFactory->create(
Psr4Mapping::fromArrayMappings([
'PhpParser\\' => [dirname(__DIR__, 2) . '/vendor/nikic/php-parser/lib/PhpParser/'],
]),
);

$locators[] = new PhpInternalSourceLocator($astPhp8Locator, $this->phpStormStubsSourceStubber);

Expand Down

0 comments on commit 3e498e1

Please sign in to comment.