Skip to content

Commit 100d583

Browse files
authored
Fix unless code comment (#53529)
The existing code comment was copied from `when`, and therefore mistakenly explains the callback is called when the value is truthy.
1 parent 11dc863 commit 100d583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Collections/Enumerable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public function whenEmpty(callable $callback, ?callable $default = null);
334334
public function whenNotEmpty(callable $callback, ?callable $default = null);
335335

336336
/**
337-
* Apply the callback if the given "value" is (or resolves to) truthy.
337+
* Apply the callback if the given "value" is (or resolves to) falsy.
338338
*
339339
* @template TUnlessReturnType
340340
*

0 commit comments

Comments
 (0)