update kirby
This commit is contained in:
parent
652262ac94
commit
9c662bcbba
165 changed files with 1757 additions and 598 deletions
|
|
@ -149,7 +149,7 @@ class Session
|
|||
* @param string|null $mode Optional new transmission mode
|
||||
* @return string Transmission mode
|
||||
*/
|
||||
public function mode(string $mode = null): string
|
||||
public function mode(string|null $mode = null): string
|
||||
{
|
||||
if ($mode !== null) {
|
||||
// only allow this if this is a new session, otherwise the change
|
||||
|
|
@ -214,7 +214,7 @@ class Session
|
|||
* @param int|null $duration Optional new duration in seconds to set
|
||||
* @return int Number of seconds
|
||||
*/
|
||||
public function duration(int $duration = null): int
|
||||
public function duration(int|null $duration = null): int
|
||||
{
|
||||
if ($duration !== null) {
|
||||
// verify that the duration is at least 1 second
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ class Sessions
|
|||
* @param string $token Session token, either including or without the key
|
||||
* @param string|null $mode Optional transmission mode override
|
||||
*/
|
||||
public function get(string $token, string $mode = null): Session
|
||||
public function get(string $token, string|null $mode = null): Session
|
||||
{
|
||||
return $this->cache[$token] ??= new Session(
|
||||
$this,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue