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|array $action
27
* @param string $text
28
* @param mixed $parameters
29
* @param bool $absolute
30
*
31
* @return static
32
*/
33
public static function toAction($action, string $text, $parameters = [], bool $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.