From ff8da7e0087749c7e4ade70e10764144788dd96b Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 27 Nov 2020 13:21:34 +0000 Subject: [PATCH] MDL-54907 dml: Correct incorrect PHPdoc --- lib/dml/moodle_database.php | 2 +- lib/dml/mysqli_native_moodle_database.php | 2 +- lib/dml/oci_native_moodle_database.php | 2 +- lib/dml/pdo_moodle_database.php | 2 +- lib/dml/pgsql_native_moodle_database.php | 2 +- lib/dml/sqlsrv_native_moodle_database.php | 2 +- lib/dml/tests/fixtures/test_moodle_database.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/dml/moodle_database.php b/lib/dml/moodle_database.php index e084051e95b..feccafcb47f 100644 --- a/lib/dml/moodle_database.php +++ b/lib/dml/moodle_database.php @@ -1748,7 +1748,7 @@ abstract class moodle_database { * If the return ID isn't required, then this just reports success as true/false. * $data is an object containing needed data * @param string $table The database table to be inserted into - * @param object $dataobject A data object with values for one or more fields in the record + * @param object|array $dataobject A data object with values for one or more fields in the record * @param bool $returnid Should the id of the newly created record entry be returned? If this option is not requested then true/false is returned. * @param bool $bulk Set to true is multiple inserts are expected * @return bool|int true or new id diff --git a/lib/dml/mysqli_native_moodle_database.php b/lib/dml/mysqli_native_moodle_database.php index 44595021875..13eceb374d2 100644 --- a/lib/dml/mysqli_native_moodle_database.php +++ b/lib/dml/mysqli_native_moodle_database.php @@ -1374,7 +1374,7 @@ class mysqli_native_moodle_database extends moodle_database { * If the return ID isn't required, then this just reports success as true/false. * $data is an object containing needed data * @param string $table The database table to be inserted into - * @param object $data A data object with values for one or more fields in the record + * @param object|array $dataobject A data object with values for one or more fields in the record * @param bool $returnid Should the id of the newly created record entry be returned? If this option is not requested then true/false is returned. * @return bool|int true or new id * @throws dml_exception A DML specific exception is thrown for any errors. diff --git a/lib/dml/oci_native_moodle_database.php b/lib/dml/oci_native_moodle_database.php index ce5ae225e30..3230f34d895 100644 --- a/lib/dml/oci_native_moodle_database.php +++ b/lib/dml/oci_native_moodle_database.php @@ -1284,7 +1284,7 @@ class oci_native_moodle_database extends moodle_database { * If the return ID isn't required, then this just reports success as true/false. * $data is an object containing needed data * @param string $table The database table to be inserted into - * @param object $data A data object with values for one or more fields in the record + * @param object|array $dataobject A data object with values for one or more fields in the record * @param bool $returnid Should the id of the newly created record entry be returned? If this option is not requested then true/false is returned. * @return bool|int true or new id * @throws dml_exception A DML specific exception is thrown for any errors. diff --git a/lib/dml/pdo_moodle_database.php b/lib/dml/pdo_moodle_database.php index 7f719059bd9..d17ba24bbd1 100644 --- a/lib/dml/pdo_moodle_database.php +++ b/lib/dml/pdo_moodle_database.php @@ -390,7 +390,7 @@ abstract class pdo_moodle_database extends moodle_database { * If the return ID isn't required, then this just reports success as true/false. * $data is an object containing needed data * @param string $table The database table to be inserted into - * @param object $data A data object with values for one or more fields in the record + * @param object|array $dataobject A data object with values for one or more fields in the record * @param bool $returnid Should the id of the newly created record entry be returned? If this option is not requested then true/false is returned. * @param bool $bulk true means repeated inserts expected * @return bool|int true or new id diff --git a/lib/dml/pgsql_native_moodle_database.php b/lib/dml/pgsql_native_moodle_database.php index 848cee12967..5cb4e74bb5a 100644 --- a/lib/dml/pgsql_native_moodle_database.php +++ b/lib/dml/pgsql_native_moodle_database.php @@ -1044,7 +1044,7 @@ class pgsql_native_moodle_database extends moodle_database { * If the return ID isn't required, then this just reports success as true/false. * $data is an object containing needed data * @param string $table The database table to be inserted into - * @param object $data A data object with values for one or more fields in the record + * @param object|array $dataobject A data object with values for one or more fields in the record * @param bool $returnid Should the id of the newly created record entry be returned? If this option is not requested then true/false is returned. * @return bool|int true or new id * @throws dml_exception A DML specific exception is thrown for any errors. diff --git a/lib/dml/sqlsrv_native_moodle_database.php b/lib/dml/sqlsrv_native_moodle_database.php index 8b1f1569b47..799438b6591 100644 --- a/lib/dml/sqlsrv_native_moodle_database.php +++ b/lib/dml/sqlsrv_native_moodle_database.php @@ -1118,7 +1118,7 @@ class sqlsrv_native_moodle_database extends moodle_database { * If the return ID isn't required, then this just reports success as true/false. * $data is an object containing needed data * @param string $table The database table to be inserted into - * @param object $data A data object with values for one or more fields in the record + * @param object|array $dataobject A data object with values for one or more fields in the record * @param bool $returnid Should the id of the newly created record entry be returned? If this option is not requested then true/false is returned. * @return bool|int true or new id * @throws dml_exception A DML specific exception is thrown for any errors. diff --git a/lib/dml/tests/fixtures/test_moodle_database.php b/lib/dml/tests/fixtures/test_moodle_database.php index fcc4bfa9b3a..9d3fe048975 100644 --- a/lib/dml/tests/fixtures/test_moodle_database.php +++ b/lib/dml/tests/fixtures/test_moodle_database.php @@ -249,7 +249,7 @@ abstract class test_moodle_database extends moodle_database { /** * Default implementation, throws Exception * @param string $table - * @param StdObject $dataobject + * @param object|array $dataobject * @param bool $returnid * @param bool $bulk * @return bool|int true or new id