Upgrade to 3.8.1
This commit is contained in:
@@ -611,12 +611,15 @@ class Session
|
||||
// now make sure that we have a valid timestamp
|
||||
if (is_int($time)) {
|
||||
return $time;
|
||||
} else {
|
||||
throw new InvalidArgumentException([
|
||||
'data' => ['method' => 'Session::timeToTimestamp', 'argument' => '$time'],
|
||||
'translate' => false
|
||||
]);
|
||||
}
|
||||
|
||||
throw new InvalidArgumentException([
|
||||
'data' => [
|
||||
'method' => 'Session::timeToTimestamp',
|
||||
'argument' => '$time'
|
||||
],
|
||||
'translate' => false
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -177,14 +177,19 @@ class SessionData
|
||||
{
|
||||
if (is_string($key)) {
|
||||
return $this->data[$key] ?? $default;
|
||||
} elseif ($key === null) {
|
||||
return $this->data;
|
||||
} else {
|
||||
throw new InvalidArgumentException([
|
||||
'data' => ['method' => 'SessionData::get', 'argument' => 'key'],
|
||||
'translate' => false
|
||||
]);
|
||||
}
|
||||
|
||||
if ($key === null) {
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
throw new InvalidArgumentException([
|
||||
'data' => [
|
||||
'method' => 'SessionData::get',
|
||||
'argument' => 'key'
|
||||
],
|
||||
'translate' => false
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user