From 846ea1484ddb143e06e8b11a536388597492344a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9opold=20Jacquot?= Date: Mon, 30 Jan 2023 13:33:57 +0100 Subject: [PATCH] fix: partially-supported-callable-deprecation --- src/MessageSubject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MessageSubject.php b/src/MessageSubject.php index e476ba1..1c432b9 100644 --- a/src/MessageSubject.php +++ b/src/MessageSubject.php @@ -107,8 +107,8 @@ function (FrameInterface $frame) { ->merge($keepAliveObs) ->subscribe( [$messageBuffer, 'onData'], - [$this, 'parent::onError'], - [$this, 'parent::onCompleted'] + parent::onError(...), + parent::onCompleted(...) ); $this->subProtocol = $subProtocol;