Skip to content

Commit 2908c63

Browse files
committed
Skip getallheaders polyfill with wrong PHPDoc
1 parent 66617b9 commit 2908c63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Reflection/BetterReflection/SourceLocator/SkipPolyfillSourceLocator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public function locateIdentifier(Reflector $reflector, Identifier $identifier):
3434
$fileName = $reflection->getFileName();
3535
if ($fileName !== null) {
3636
$normalized = str_replace('\\', '/', $fileName);
37+
if (str_contains($normalized, '/ralouphie/getallheaders/src/getallheaders.php')) {
38+
return null;
39+
}
3740
if (str_contains($normalized, '/symfony/polyfill-php80/') && $this->phpVersion->getVersionId() >= 80000) {
3841
return null;
3942
}

0 commit comments

Comments
 (0)