Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Apr 12, 2024
1 parent eb96a85 commit d105c36
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/CachesValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,12 @@ private static function store(): array
{
$class = static::class;

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

return self::parseCacheString($store
?? throw new \Exception('The $store property in ['.static::class.'] must be overridden'),
);
});
return self::parseCacheString($store
?? throw new \Exception('The $store property in ['.static::class.'] must be overridden'),
);
}
}

0 comments on commit d105c36

Please sign in to comment.