Skip to content

Commit 9dee3fe

Browse files
committed
Update PHP minimum version to 8.0 and dependencies to latest compatible version
1 parent 2c2c47b commit 9dee3fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Query/Query.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Query extends BaseStatement
9494
* Create new instance
9595
* @param QueryStatement|null $queryStatement
9696
*/
97-
public function __construct(QueryStatement $queryStatement = null)
97+
public function __construct(?QueryStatement $queryStatement = null)
9898
{
9999
parent::__construct($queryStatement);
100100
$this->havingStatement = new HavingStatement($this->queryStatement);
@@ -185,7 +185,7 @@ public function groupBy(string|Expression|Closure|array $columns): self
185185
* @param Closure|null $value
186186
* @return $this
187187
*/
188-
public function having(string|Expression|Closure $column, Closure $value = null): self
188+
public function having(string|Expression|Closure $column, ?Closure $value = null): self
189189
{
190190
$this->getHavingStatement()->having($column, $value);
191191

@@ -198,7 +198,7 @@ public function having(string|Expression|Closure $column, Closure $value = null)
198198
* @param Closure|null $value
199199
* @return $this
200200
*/
201-
public function orHaving(string|Expression|Closure $column, Closure $value = null): self
201+
public function orHaving(string|Expression|Closure $column, ?Closure $value = null): self
202202
{
203203
$this->getHavingStatement()->orHaving($column, $value);
204204

0 commit comments

Comments
 (0)