diff --git a/cache.rst b/cache.rst index 9379511fde8..5c870736800 100644 --- a/cache.rst +++ b/cache.rst @@ -869,7 +869,7 @@ First, create a service that will compute the item's value:: class CacheComputation { - public function compute(ItemInterface $item): string + public static function compute(ItemInterface $item): string { $item->expiresAfter(5);