Skip to content

Commit

Permalink
fix: cache store property being cached too strictly
Browse files Browse the repository at this point in the history
  • Loading branch information
david-d-h committed Apr 10, 2024
1 parent 9011d73 commit 7158c79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Cached.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ private static function parseCacheString(string $store): array
*/
private static function store(): array
{
return once(function () {
$store = (new ReflectionClass(static::class))
$class = static::class;

return once(function () use ($class) {
$store = (new ReflectionClass($class))
->getProperty('store')
->getDefaultValue();

Expand Down

0 comments on commit 7158c79

Please sign in to comment.