Skip to content

Commit

Permalink
Cache null result on ProjectComposerJsonPhpVersionResolver (#5559)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Feb 4, 2024
1 parent 02a088c commit 70f10cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function resolve(string $composerJson): ?int
return self::$cachedPhpVersions[$composerJson];
}

return null;
return self::$cachedPhpVersions[$composerJson] = null;
}

private static function createIntVersionFromComposerVersion(string $projectPhpVersion): int
Expand Down

0 comments on commit 70f10cb

Please sign in to comment.