diff --git a/http_cache.rst b/http_cache.rst index 949e95acf4e..3a2d6c1b427 100644 --- a/http_cache.rst +++ b/http_cache.rst @@ -114,7 +114,7 @@ Use the ``framework.http_cache`` option to enable the proxy for the // config/packages/framework.php use Symfony\Config\FrameworkConfig; - return static function (FrameworkConfig $framework) use ($env) { + return static function (FrameworkConfig $framework, string $env) { if ('prod' === $env) { $framework->httpCache()->enabled(true); }