You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ReadableCollection has the findFirst method. This method is not defined in the Collections.phpstub file.
It's just matter as add the follwing code (copied from ReadableCollection):
/** * Returns the first element of this collection that satisfies the predicate p. * * @param Closure $p The predicate. * @psalm-param Closure(TKey, T):bool $p * * @return mixed The first element respecting the predicate, null if no element respects the predicate. * @psalm-return T|null */publicfunction findFirst(Closure$p);
The text was updated successfully, but these errors were encountered:
The
ReadableCollection
has thefindFirst
method. This method is not defined in theCollections.phpstub
file.It's just matter as add the follwing code (copied from
ReadableCollection
):The text was updated successfully, but these errors were encountered: