MDL-75548 misc: final Required parameter follows optional notices

This commit is contained in:
Tim Hunt
2022-08-22 15:20:13 +01:00
parent 17ee072693
commit 797b9fbd62
18 changed files with 48 additions and 48 deletions
+2 -2
View File
@@ -315,12 +315,12 @@ class pgsql_native_moodle_database extends moodle_database {
/**
* Called before each db query.
* @param string $sql
* @param array array of parameters
* @param array|null $params An array of parameters.
* @param int $type type of query
* @param mixed $extrainfo driver specific extra information
* @return void
*/
protected function query_start($sql, array $params=null, $type, $extrainfo=null) {
protected function query_start($sql, ?array $params, $type, $extrainfo=null) {
$this->read_slave_query_start($sql, $params, $type, $extrainfo);
// pgsql driver tends to send debug to output, we do not need that.
$this->last_error_reporting = error_reporting(0);