-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
事件参数被替换,Swoft::trigger('user.login', $uid) #1290
Comments
出现路径未知,代码不修改,重启后立即正常,很难复现 |
inhere
added
bug
bug: waiting fix
and removed
swoft: db
Issues for swoft db component
labels
May 14, 2020
好的 |
如果能提供复现流程最好,可以避免已有的项目错误 |
|
class TestListener implements EventHandlerInterface
{
public function handle(EventInterface $event): void
{
var_dump($event->getTarget());
sgo(function () {
});
var_dump($event->getTarget());
}
} 在里面使用协程就会导致getTarget为空 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本 swoft 2.0.8 swoole 4.4.5
非必现,但是出现后,后面调用一直都报错
调用开始
报错位置
可以看到,我传入的是int类型参数,$event->getTarget()拿到的是MySqlConnection对象报错信息
The text was updated successfully, but these errors were encountered: