Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
36 | 58 | private function getNormalizedArgs($method, $args): array |
|
37 | { |
||
38 | 58 | $normalizer = app(RouteNormalizer::class); |
|
39 | 58 | if ($method == 'CallAction') { |
|
40 | 10 | return $normalizer->normalizeAction($args); |
|
41 | } |
||
42 | 51 | if ($method == 'HitRouteName') { |
|
43 | 11 | return $args; |
|
44 | } |
||
45 | |||
46 | 40 | $method = str_replace('VisitUrl', 'SendGet', $method); |
|
47 | 40 | $method = str_replace('Send', '', $method); |
|
48 | |||
49 | 40 | return $normalizer->normalizeUrl($args, strtoupper($method)); |
|
50 | } |
||
52 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..