This commit is contained in:
2021-02-25 18:13:48 +08:00
parent 738afc1cc3
commit b85a6a777c
+3 -3
View File
@@ -487,14 +487,14 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
}
/**
* @param array|null $data
* @param null $data
* @return bool|$this
* @throws Exception
*/
public function save(array $data = NULL): static|bool
public function save($data = NULL): static|bool
{
if (!is_null($data)) {
$this->_attributes = $data;
$this->attributes = $data;
}
if (!$this->validator($this->rules())) {