Laravel - when I use compact() to send array of variables to view, my IDE (PHPStorm) doesn't see that variable is used and marks it as not used What to do to mark it used in this case ? I think that it would be better if compact was getting variable as a parameter, but not it's name as string
public function myControllerAction($param1, $param2)
{
$param3 = 'value';
return view('mycomponent.myview', compact([
'param1',
'param2',
'param3'
]));
}
if I remove array symbols, it works! but I see it now like this:

and it is not very readable
([ 'param1', 'param2', 'param3' ])So just writecompact('param1','param2','param3')