We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de9783 commit d1d0450Copy full SHA for d1d0450
1 file changed
src/HasConditionalCalls.php
@@ -10,7 +10,7 @@ trait HasConditionalCalls
10
* @param mixed $condition
11
* @param Closure|null $callback
12
*
13
- * @return static|ConditionalProxy
+ * @return ($callback is null ? ConditionalProxy : static)
14
*/
15
public function when($condition, ?Closure $callback = null)
16
{
0 commit comments