如果在model层继承了AbstractModel使用协成单例,协成CoroutineSingleTon下面的destroy方法会导致警告,可能是因为static,报错内容:
Declaration of EasySwoole\Component\CoroutineSingleTon::destroy(?int $cid = NULL) should be compatible with EasySwoole\ORM\AbstractModel::destroy($where = NULL, $allow = false)
如果在model层继承了AbstractModel使用协成单例,协成CoroutineSingleTon下面的destroy方法会导致警告,可能是因为static,报错内容: Declaration of EasySwoole\Component\CoroutineSingleTon::destroy(?int $cid = NULL) should be compatible with EasySwoole\ORM\AbstractModel::destroy($where = NULL, $allow = false)