Skip to content

Commit 3e498e1

Browse files
committed
Stub validator - PhpParser classes are known without extra stubs
1 parent d004c23 commit 3e498e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PhpDoc/StubSourceLocatorFactory.php

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public function create(): SourceLocator
4040
'PHPStan\\' => [dirname(__DIR__) . '/'],
4141
]),
4242
);
43+
$locators[] = $this->optimizedPsrAutoloaderLocatorFactory->create(
44+
Psr4Mapping::fromArrayMappings([
45+
'PhpParser\\' => [dirname(__DIR__, 2) . '/vendor/nikic/php-parser/lib/PhpParser/'],
46+
]),
47+
);
4348

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

0 commit comments

Comments
 (0)