mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 08:35:35 +08:00
fix the rest problem code to phpstan-level-1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user