This commit is contained in:
2025-07-14 18:03:42 +08:00
parent 583e2214c3
commit 61f549362d
+1 -1
View File
@@ -980,7 +980,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq
*
* @return $this
*/
public function groupBy(string $name, string $having = NULL): static
public function groupBy(string $name, ?string $having = NULL): static
{
$this->group = $name;
if (empty($having)) {