每当创建新实体时,都会发生以下错误。
Warning (4096): Argument 3 passed to App\Model\Table\AccountsTable::afterSave() must be of the type array, object given, called in D:\Xampp\htdocs\vendor\cakephp\cakephp\src\Event\EventManager.php on line 268 and defined [APP/Model\Table\AccountsTable.php, line 18]
afterSave 模型内的代码
public function afterSave(Event $event, Entity $entity, array $options) {
}
有人知道这里发生了什么吗?