Skip to content

Commit d1d0450

Browse files
authored
Update return type annotation for when method
1 parent 3de9783 commit d1d0450

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/HasConditionalCalls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trait HasConditionalCalls
1010
* @param mixed $condition
1111
* @param Closure|null $callback
1212
*
13-
* @return static|ConditionalProxy
13+
* @return ($callback is null ? ConditionalProxy : static)
1414
*/
1515
public function when($condition, ?Closure $callback = null)
1616
{

0 commit comments

Comments
 (0)