update kirby

This commit is contained in:
isUnknown 2025-02-07 17:11:37 +01:00
parent 652262ac94
commit 9c662bcbba
165 changed files with 1757 additions and 598 deletions

View file

@ -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

View file

@ -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,