It seems like $request->get('menus') can also be of type null; however, parameter $menus of App\Service\enso\menus\Organizer::__construct() does only seem to accept array, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
13
(new Organizer(/** @scrutinizer ignore-type */ $request->get('menus')))->handle();
Loading history...
14
15
return ['message' => __('The menu order has been sucessfully updated')];