Skip to content

Commit a316c9e

Browse files
authored
Update GroupByCriteria.php
1 parent 1e11d98 commit a316c9e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Criteria/Group/GroupByCriteria.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ class GroupByCriteria extends Criteria
1818
public function __construct($columns)
1919
{
2020
if (!is_array($columns)) {
21-
$columns = [
22-
$columns
23-
];
21+
$columns = (array) $columns;
2422
}
2523

2624
$this->columns = $columns;

0 commit comments

Comments
 (0)