allow psalm to update

phpdoc fix
pull/316/head
David Goodwin 5 years ago
parent 9526e68e3e
commit 174b874c56

@ -28,7 +28,7 @@
"php": ">7.2.0",
"php-coveralls/php-coveralls" : "*",
"phpunit/phpunit": "^6.0",
"vimeo/psalm":"3.0.8",
"vimeo/psalm":"3.*",
"zendframework/zendframework1": "^1.12.0"
},
"autoload": {

@ -333,7 +333,7 @@ function check_email($email) {
* $sql = "SELECT * FROM foo WHERE x = '" . escape_string('fish') . "'";
* </code>
*
* @param int|string $string parameters to escape
* @param int|string $string_or_int parameters to escape
* @return string cleaned data, suitable for use within an SQL statement.
*/
function escape_string($string_or_int) {
@ -1780,7 +1780,7 @@ function db_delete($table, $where, $delete, $additionalwhere='') {
* @param string - table name
* @param array $values - key/value map of data to insert into the table.
* @param array $timestamp (optional) - array of fields to set to now() - default: array('created', 'modified')
* @param boolean $throw_errors
* @param boolean $throw_exceptions
* @return int - number of inserted rows
*/
function db_insert($table, array $values, $timestamp = array('created', 'modified'), $throw_exceptions = false) {

Loading…
Cancel
Save