$passes of type array is incompatible with the type Illuminate\Contracts\Support\Arrayable expected by parameter $value of collect().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The expression return preg_match('/^[\+...?[0-9]{4,6}$/', $value) returns the type integer which is incompatible with the documented return type boolean.