It seems like url($path, $parameters, $secure) targeting url() can also be of type object<Illuminate\Contracts\Routing\UrlGenerator>; however, Spatie\Menu\Link::to() does only seem to accept string, maybe add an additional type check?
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.
Loading history...
23
}
24
25
/**
26
* @param string $action
27
* @param string $text
28
* @param array $parameters
29
* @param bool $absolute
30
*
31
* @return $this
32
*/
33
public static function action(string $action, string $text, $parameters = [], $absolute = true)
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.