Add proper phpdoc for Context::setCacheControl()

This commit is contained in:
Kijin Sung 2024-03-24 23:08:42 +09:00
parent ff41a14237
commit 7149bc28dd

View file

@ -450,9 +450,11 @@ class Context
/** /**
* set Cache-Control header * set Cache-Control header
* *
* @param int $ttl
* @param bool $public
* @return void * @return void
*/ */
public static function setCacheControl($ttl = 0, $public = true) public static function setCacheControl($ttl = 0, $public = true): void
{ {
$cache_control_header = config('cache.cache_control') ?? 'must-revalidate, no-store, no-cache'; $cache_control_header = config('cache.cache_control') ?? 'must-revalidate, no-store, no-cache';