$this->routes of type array is incompatible with the type Illuminate\Contracts\Support\Arrayable expected by parameter $items of Illuminate\Support\Collection::make().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
19
return Collection::make(/** @scrutinizer ignore-type */ $this->routes)->filter(function ($route) use ($message) {