mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add proper phpdoc for Context::setCacheControl()
This commit is contained in:
parent
ff41a14237
commit
7149bc28dd
1 changed files with 3 additions and 1 deletions
|
|
@ -450,9 +450,11 @@ class Context
|
|||
/**
|
||||
* set Cache-Control header
|
||||
*
|
||||
* @param int $ttl
|
||||
* @param bool $public
|
||||
* @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';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue