These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Spatie\CollectionMacros\Macros; |
||
4 | |||
5 | use Illuminate\Support\Collection; |
||
6 | |||
7 | /** |
||
8 | * Map a collection, then filter the results. |
||
9 | * |
||
10 | * @param callable $callback |
||
11 | * |
||
12 | * @mixin \Illuminate\Support\Collection |
||
13 | * |
||
14 | * @return \Illuminate\Support\Collection |
||
15 | */ |
||
16 | class FilterMap |
||
17 | { |
||
18 | public function __invoke() |
||
19 | { |
||
20 | return function (callable $callback): Collection { |
||
21 | return $this->map($callback)->filter(); |
||
0 ignored issues
–
show
|
|||
22 | }; |
||
23 | } |
||
24 | } |
||
25 |
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.