Fix Categories manager

For PHP 7.3 O_o
This commit is contained in:
Visman 2021-12-11 21:47:02 +07:00
parent 4eacb71ead
commit 87ce20a3af

View file

@ -48,7 +48,7 @@ class Categories extends Manager
return $this->repository;
}
public function set($key, $value): Categories
public function set($key, $value): Manager
{
if (! isset($value['cat_name'], $value['disp_position'])) {
throw new InvalidArgumentException('Expected array with cat_name and disp_position elements');