mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Remove deprecated & non-functional default argument config
This throws deprecation errors on PHP 8. Fixes #9666
This commit is contained in:
parent
08010d5933
commit
e0f3797489
@ -16,7 +16,7 @@ interface DataQueryManipulator
|
||||
* @param array $queriedColumns
|
||||
* @param SQLSelect $sqlSelect
|
||||
*/
|
||||
public function beforeGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns = [], SQLSelect $sqlSelect);
|
||||
public function beforeGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns, SQLSelect $sqlSelect);
|
||||
|
||||
/**
|
||||
* Invoked after getFinalisedQuery()
|
||||
@ -25,5 +25,5 @@ interface DataQueryManipulator
|
||||
* @param array $queriedColumns
|
||||
* @param SQLSelect $sqlQuery
|
||||
*/
|
||||
public function afterGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns = [], SQLSelect $sqlQuery);
|
||||
public function afterGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns, SQLSelect $sqlQuery);
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ class ManyManyThroughQueryManipulator implements DataQueryManipulator
|
||||
* @param array $queriedColumns
|
||||
* @param SQLSelect $sqlSelect
|
||||
*/
|
||||
public function beforeGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns = [], SQLSelect $sqlSelect)
|
||||
public function beforeGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns, SQLSelect $sqlSelect)
|
||||
{
|
||||
// Get metadata and SQL from join table
|
||||
$hasManyRelation = $this->getParentRelationship($dataQuery);
|
||||
@ -281,7 +281,7 @@ class ManyManyThroughQueryManipulator implements DataQueryManipulator
|
||||
* @param array $queriedColumns
|
||||
* @param SQLSelect $sqlQuery
|
||||
*/
|
||||
public function afterGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns = [], SQLSelect $sqlQuery)
|
||||
public function afterGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns, SQLSelect $sqlQuery)
|
||||
{
|
||||
// Inject final replacement after manipulation has been performed on the base dataquery
|
||||
$joinTableSQL = $dataQuery->getQueryParam('Foreign.JoinTableSQL');
|
||||
|
Loading…
Reference in New Issue
Block a user