chore: Аннотации к типам

This commit is contained in:
origami11@yandex.ru 2025-10-27 16:39:44 +03:00
parent 730a608f9b
commit 89913de4fe
19 changed files with 124 additions and 24 deletions

View file

@ -4,6 +4,12 @@
namespace ctiso;
class Arr {
/**
* @param array $data
* @param string $key
* @param mixed $default
* @return mixed
*/
static function get($data, $key, $default = null) {
return $data[$key] ?? $default;
}