chore: Аннотации к типам
This commit is contained in:
parent
730a608f9b
commit
89913de4fe
19 changed files with 124 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue