1 | <?php |
||
8 | class Link extends BaseLink |
||
9 | { |
||
10 | use Macroable; |
||
11 | |||
12 | /** |
||
13 | * @param string $path |
||
14 | * @param string $text |
||
15 | * @param array $parameters |
||
16 | * @param bool|null $secure |
||
17 | * |
||
18 | * @return static |
||
19 | */ |
||
20 | public static function toUrl(string $path, string $text, array $parameters = [], $secure = null) |
||
24 | |||
25 | /** |
||
26 | * @param string $action |
||
27 | * @param string $text |
||
28 | * @param array $parameters |
||
29 | * @param bool $absolute |
||
30 | * |
||
31 | * @return static |
||
32 | */ |
||
33 | public static function toAction(string $action, string $text, array $parameters = [], bool $absolute = true) |
||
37 | |||
38 | /** |
||
39 | * @param string $name |
||
40 | * @param string $text |
||
41 | * @param array $parameters |
||
42 | * @param bool $absolute |
||
43 | * @param \Illuminate\Routing\Route|null $route |
||
44 | * |
||
45 | * @return static |
||
46 | */ |
||
47 | public static function toRoute(string $name, string $text, array $parameters = [], $absolute = true, $route = null) |
||
51 | } |
||
52 |
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.