| Conditions | 6 | 
| Paths | 5 | 
| Total Lines | 16 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php declare(strict_types=1); | ||
| 9 | public static function by(array $fields): Sorting | ||
| 10 |     { | ||
| 11 | /** @var Sort|null $sorting */ | ||
| 12 | $sorting = null; | ||
| 13 |         foreach ($fields as $field => $ascend) { | ||
| 14 |             if ($sorting === null) { | ||
| 15 | $sorting = $ascend ? | ||
| 16 | Sort::ascendingBy($field) : | ||
| 17 | Sort::descendingBy($field); | ||
| 18 |             } else { | ||
| 19 | $sorting = $ascend ? | ||
| 20 | $sorting->andThenAscendingBy($field) : | ||
|  | |||
| 21 | $sorting->andThenDescendingBy($field); | ||
| 22 | } | ||
| 23 | } | ||
| 24 | return $sorting ?: DoNotSort::atAll(); | ||
| 25 | } | ||
| 27 | 
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.