Skip to content

Commit 288fcc2

Browse files
committed
Use authoritative Attribute stub
1 parent 684353a commit 288fcc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Reflection/BetterReflection/BetterReflectionSourceLocatorFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ public function __construct(
7575

7676
public function create(): SourceLocator
7777
{
78-
$locators = [];
78+
$locators = [
79+
$this->optimizedSingleFileSourceLocatorRepository->getOrCreate(__DIR__ . '/../../../stubs/runtime/Attribute.php'),
80+
];
7981

8082
if ($this->singleReflectionFile !== null) {
8183
$locators[] = $this->optimizedSingleFileSourceLocatorRepository->getOrCreate($this->singleReflectionFile);

0 commit comments

Comments
 (0)