Skip to content

Commit c5471c4

Browse files
committed
Update FileCachedSourceLocator.php
1 parent 805a078 commit c5471c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Reflection/BetterReflection/SourceLocator/FileCachedSourceLocator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ public function __construct(
3737
{
3838
}
3939

40+
#[\Override]
4041
public function locateIdentifier(Reflector $reflector, Identifier $identifier): ?Reflection
4142
{
42-
if ($this->cachedSymbols === null) {
43-
$this->cachedSymbols = $this->loadCache($reflector);
44-
}
43+
$this->cachedSymbols ??= $this->loadCache($reflector);
4544

4645
if ($identifier->isClass()) {
4746
$className = strtolower($identifier->getName());
@@ -74,6 +73,7 @@ public function locateIdentifier(Reflector $reflector, Identifier $identifier):
7473
return null;
7574
}
7675

76+
#[\Override]
7777
public function locateIdentifiersByType(Reflector $reflector, IdentifierType $identifierType): array
7878
{
7979
return $this->locator->locateIdentifiersByType($reflector, $identifierType);

0 commit comments

Comments
 (0)