This commit is contained in:
2020-12-17 15:19:59 +08:00
parent a941ebf609
commit f7068a01ac
2 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -420,10 +420,10 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
/**
* @param null $data
* @return bool|BaseActiveRecord
* @return bool|$this
* @throws Exception
*/
public function save($data = NULL): bool|static
public function save($data = NULL): static|bool
{
if (is_array($data)) {
$this->setAttributes($data);