fix the rest problem code to phpstan-level-1

This commit is contained in:
crazywhalecc
2022-04-02 19:20:47 +08:00
committed by Jerry Ma
parent d490892092
commit daa1822bc5
4 changed files with 8 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ class UpdateBody
$msg[] = $k . ' = ?';
$arr[] = $v;
}
if (($msg ?? []) == []) {
if ($msg == []) {
throw new DbException('update value sets can not be empty!');
}
$line = 'UPDATE ' . $this->table->getTableName() . ' SET ' . implode(', ', $msg);