Fix: Dynamic property deprecation in Builder::aggregate() due to incompatible cloneWithout() call (#52)

This commit is contained in:
Mark Beech
2026-03-24 15:08:46 +05:00
committed by GitHub
parent dab4243872
commit a94b55ded2
+2 -2
View File
@@ -220,7 +220,7 @@ trait BuilderMethodsFromLaravel
*/
public function aggregate($function, $columns = ['*'])
{
$results = $this->cloneWithout($this->unions || $this->havings ? [] : ['columns'])
$results = $this->cloneWithout($this->unions || $this->havings ? [] : ['columns' => []])
->setAggregate($function, $columns)
->getRows();
@@ -249,4 +249,4 @@ trait BuilderMethodsFromLaravel
$table = $this->tableSources ?? (string)$this->getFrom()->getTable();
$this->client->insertAssocBulk($table, $values);
}
}
}