This commit is contained in:
2021-06-25 11:28:34 +08:00
parent 89e7f2d7bc
commit 84d120de92
+3 -3
View File
@@ -55,11 +55,11 @@ class Command extends Component
/** /**
* @param bool $isInsert * @param bool $isInsert
* @param bool|null $hasAutoIncrement * @param mixed $hasAutoIncrement
* @return int|bool|array|string|null * @return int|bool|array|string|null
* @throws Exception * @throws Exception
*/ */
public function save(bool $isInsert = TRUE, ?bool $hasAutoIncrement = null): int|bool|array|string|null public function save(bool $isInsert = TRUE, mixed $hasAutoIncrement = null): int|bool|array|string|null
{ {
return $this->execute(static::EXECUTE, $isInsert, $hasAutoIncrement); return $this->execute(static::EXECUTE, $isInsert, $hasAutoIncrement);
} }
@@ -117,7 +117,7 @@ class Command extends Component
* @return int|bool|array|string|null * @return int|bool|array|string|null
* @throws Exception * @throws Exception
*/ */
private function execute($type, $isInsert = null, ?bool $hasAutoIncrement = null): int|bool|array|string|null private function execute($type, $isInsert = null, mixed $hasAutoIncrement = null): int|bool|array|string|null
{ {
try { try {
$this->debug('Execute: ' . $this->sql); $this->debug('Execute: ' . $this->sql);