We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 989debf commit b60ea9cCopy full SHA for b60ea9c
src/Domain/Collection.php
@@ -163,7 +163,7 @@ public function first(callable $callback = null)
163
* @template U of T|mixed
164
* @param ?callable(T, int, static): bool $callback
165
* @param U $fallbackValue
166
- * @return U
+ * @return U|T
167
* @throws InvalidArgumentException
168
*/
169
public function firstOr(callable $callback = null, mixed $fallbackValue = null)
@@ -213,7 +213,7 @@ public function last(callable $callback = null)
213
214
215
216
217
218
219
public function lastOr(callable $callback = null, mixed $fallbackValue = null)
0 commit comments