Skip to content

Commit

Permalink
Fix Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Jul 31, 2023
1 parent b9a6775 commit 76ef537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/PackageFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function findPathOf(PackageInterface $package): string
{
$path = $this->installationManager->getInstallPath($package);

return $this->filesystem->normalizePath($path);
return is_string($path) ? $this->filesystem->normalizePath($path) : '';
}

/**
Expand Down

0 comments on commit 76ef537

Please sign in to comment.