We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 337df9b + 5d2e735 commit 2bb6795Copy full SHA for 2bb6795
src/Domain/Collection.php
@@ -200,7 +200,7 @@ public function first(callable $callback = null)
200
* @template U of T|mixed
201
* @param ?callable(T, int, static): bool $callback
202
* @param U $fallbackValue
203
- * @return U
+ * @return U|T
204
* @throws InvalidArgumentException
205
*/
206
public function firstOr(callable $callback = null, mixed $fallbackValue = null)
@@ -250,7 +250,7 @@ public function last(callable $callback = null)
250
251
252
253
254
255
256
public function lastOr(callable $callback = null, mixed $fallbackValue = null)
0 commit comments