From 13388b70c53952b6c1e637c38cb1b86d3b90c04e Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 10 Jun 2026 19:00:33 +0100 Subject: make group return itself --- src/Group.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Group.php b/src/Group.php index 7d9db95..c9d2eb5 100644 --- a/src/Group.php +++ b/src/Group.php @@ -100,10 +100,12 @@ class Group } /** @param callable(GroupDefinition): void $cb */ - public function group(callable $cb): void + public function group(callable $cb): static { ($cb)(new GroupDefinition( $this )); + + return $this; } } -- cgit v1.2.3