1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 10:07:52 +01:00
This commit is contained in:
Andrew Nagy 2023-03-02 18:07:50 +00:00
parent 5eed370fa5
commit 3467816900

View File

@ -1521,7 +1521,7 @@ final class Codebase
public function getReferenceAtPosition(string $file_path, Position $position): ?array
{
$ref = $this->getReferenceAtPositionAsReference($file_path, $position);
if($ref === null) {
if ($ref === null) {
return null;
}
return [$ref->symbol, $ref->range];