fix: phpstan level=3
This commit is contained in:
parent
277a297b8a
commit
4fc2e2ac7d
16 changed files with 69 additions and 54 deletions
|
|
@ -98,7 +98,7 @@ class Settings
|
|||
|
||||
/**
|
||||
* Чтение ключа из реестра
|
||||
* @param mixed $args Путь к значению ключа
|
||||
* @param array $key Путь к значению ключа
|
||||
*/
|
||||
public function readKey(array $key)
|
||||
{
|
||||
|
|
@ -130,9 +130,8 @@ class Settings
|
|||
* Чтение ключа из реестра (Собирает все ключи с определенным значением во всех модулях)
|
||||
* @param mixed $key Путь к значению ключа внутри модуля
|
||||
*/
|
||||
public function readKeyList($_rest)
|
||||
{
|
||||
$key = func_get_args();
|
||||
public function readKeyList(...$key)
|
||||
{
|
||||
$result = array();
|
||||
foreach ($this->data as $name => $value) {
|
||||
$output = $this->readKeyData($key, $value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue