Skip to content

Commit

Permalink
Add missing return statement (laravel#53644)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamiroh authored Nov 25, 2024
1 parent 401798e commit 74d9639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ public function offsetSet(mixed $offset, mixed $value): void
$value();
}
});

return $this;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ public function testWithoutDefer()
});
$this->assertSame([], $called);

$this->withoutDefer();
$instance = $this->withoutDefer();
defer(function () use (&$called) {
$called[] = 2;
});
$this->assertSame([2], $called);
$this->assertSame($this, $instance);

$this->withDefer();
$this->assertSame([2], $called);
Expand Down

0 comments on commit 74d9639

Please sign in to comment.