Skip to content

Commit

Permalink
Fix QA
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed May 6, 2024
1 parent c84c73c commit 888ffd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

<issueHandlers>
<MixedAssignment errorLevel="suppress" />
<MissingClassConstType errorLevel="suppress" />
<UnresolvableInclude errorLevel="suppress" />
</issueHandlers>
</psalm>
2 changes: 1 addition & 1 deletion src/Utils/InstalledPackages.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private function parse(): array
$locker = $this->composer->getLocker();
$key = spl_object_hash($locker);

if (!empty(self::$cache[$key])) {
if (isset(self::$cache[$key])) {
/** @var array<string, array|InstalledArrayRepository> $cache */
$cache = self::$cache[$key];

Expand Down

0 comments on commit 888ffd7

Please sign in to comment.