new Совместимость с php8

This commit is contained in:
origami11@yandex.ru 2023-04-19 11:25:28 +03:00
parent 2edd65d145
commit 5748ea9148
7 changed files with 17 additions and 30 deletions

View file

@ -79,22 +79,22 @@ class Collection implements \ArrayAccess
$this->data = array();
}
public function offsetSet($key, $value)
public function offsetSet($key, $value): void
{
$this->data[$key] = $value;
}
public function offsetExists($key)
public function offsetExists($key): bool
{
return isset($this->data[$key]);
}
public function offsetUnset($key)
public function offsetUnset($key): void
{
unset($this->data[$key]);
}
public function offsetGet($key)
public function offsetGet($key): mixed
{
return isset($this->data[$key]) ? $this->data[$key] : null;
}