Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
35 | private function getNormalizedArgs($method, $args): array |
||
36 | { |
||
37 | $normalizer = app(RouteNormalizer::class); |
||
38 | 1 | if ($method == 'CallAction') { |
|
39 | return $normalizer->normalizeAction($args); |
||
40 | 1 | } |
|
41 | if ($method == 'HitRouteName') { |
||
42 | return $args; |
||
43 | } |
||
44 | |||
45 | $method = str_replace('VisitUrl', 'SendGet', $method); |
||
46 | $method = str_replace('Send', '', $method); |
||
47 | return $normalizer->normalizeUrl($args, strtoupper($method)); |
||
48 | 2 | ||
51 |
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..