| Conditions | 4 |
| Paths | 6 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 106 | public static function call($method, $args) |
|
| 17 | { |
||
| 18 | 106 | $args = is_array($args[0]) ? $args[0] : $args; |
|
| 19 | 106 | foreach (self::$situations as $className) { |
|
| 20 | 106 | if (self::methodExists($method, $className)) { |
|
| 21 | 106 | resolve($className)->$method(...$args); |
|
| 22 | |||
| 23 | 105 | return resolve(YouShouldHave::class); |
|
| 24 | } |
||
| 39 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.