MDL-80821 dml: declare arguments for sql_concat()

This commit is contained in:
Marina Glancy
2024-02-19 12:27:51 +00:00
parent d3ad77e476
commit 5117dee664
9 changed files with 13 additions and 19 deletions
+2 -3
View File
@@ -341,11 +341,10 @@ class sqlite3_pdo_moodle_database extends pdo_moodle_database {
* Returns the proper SQL to do CONCAT between the elements passed
* Can take many parameters
*
* @param string $element
* @param string $elements,...
* @return string
*/
public function sql_concat() {
$elements = func_get_args();
public function sql_concat(...$elements) {
return implode('||', $elements);
}