Replace deprecated use of "self" in callables
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1383147421
This commit is contained in:
@@ -527,7 +527,7 @@ class DBA
|
||||
public static function buildTableString(array $tables): string
|
||||
{
|
||||
// Quote each entry
|
||||
return implode(',', array_map(['self', 'quoteIdentifier'], $tables));
|
||||
return implode(',', array_map([self::class, 'quoteIdentifier'], $tables));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -717,7 +717,7 @@ class DBA
|
||||
{
|
||||
$groupby_string = '';
|
||||
if (!empty($params['group_by'])) {
|
||||
$groupby_string = " GROUP BY " . implode(', ', array_map(['self', 'quoteIdentifier'], $params['group_by']));
|
||||
$groupby_string = " GROUP BY " . implode(', ', array_map([self::class, 'quoteIdentifier'], $params['group_by']));
|
||||
}
|
||||
|
||||
$order_string = '';
|
||||
|
||||
Reference in New Issue
Block a user