chore: Проверки для типов

This commit is contained in:
origami11@yandex.ru 2025-12-01 16:19:28 +03:00
parent 6fdc3eb46b
commit 5d3fae4249
15 changed files with 125 additions and 42 deletions

View file

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