chore: Проверки для типов
This commit is contained in:
parent
6fdc3eb46b
commit
5d3fae4249
15 changed files with 125 additions and 42 deletions
|
|
@ -16,6 +16,9 @@ class Session
|
|||
{
|
||||
if (is_array($key)) {
|
||||
$className = get_class($key[0]);
|
||||
/*if ($className === false) {
|
||||
throw new \RuntimeException("Invalid class name " . $className);
|
||||
}*/
|
||||
$_SESSION[strtolower($className)][$key[1]] = $value;
|
||||
} else {
|
||||
$_SESSION[$key] = $value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue