Skip to content

Commit

Permalink
Vote cache: improve Weakmap type
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-boudry committed May 28, 2024
1 parent 8f9d388 commit 3d4f2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vote.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function valid(): bool

// Performance (for internal use)
protected static ?\stdClass $cacheKey = null;
protected ?\WeakMap $cacheMap = null;
protected \WeakMap $cacheMap;

public static function initCache(): \stdClass
{
Expand Down

0 comments on commit 3d4f2a3

Please sign in to comment.