From 4e1f44deead4c1ed6755210f1238ed9460692ba5 Mon Sep 17 00:00:00 2001 From: Andrew M-Y Date: Fri, 29 Dec 2023 19:25:22 +0200 Subject: [PATCH] One more deprecation --- pkg/job-queue/Test/DbalPersistedConnection.php | 2 +- .../Spec/SnsQsSendToTopicAndReceiveNoWaitFromQueueTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/job-queue/Test/DbalPersistedConnection.php b/pkg/job-queue/Test/DbalPersistedConnection.php index add0f3ddc..0a4671373 100644 --- a/pkg/job-queue/Test/DbalPersistedConnection.php +++ b/pkg/job-queue/Test/DbalPersistedConnection.php @@ -142,7 +142,7 @@ private function wrapTransactionNestingLevel($method) $this->setTransactionNestingLevel($this->getPersistedTransactionNestingLevel()); try { - call_user_func(['parent', $method]); + call_user_func([parent::class, $method]); } catch (\Exception $e) { } diff --git a/pkg/snsqs/Tests/Spec/SnsQsSendToTopicAndReceiveNoWaitFromQueueTest.php b/pkg/snsqs/Tests/Spec/SnsQsSendToTopicAndReceiveNoWaitFromQueueTest.php index e5da88635..13c74fa28 100644 --- a/pkg/snsqs/Tests/Spec/SnsQsSendToTopicAndReceiveNoWaitFromQueueTest.php +++ b/pkg/snsqs/Tests/Spec/SnsQsSendToTopicAndReceiveNoWaitFromQueueTest.php @@ -36,7 +36,7 @@ protected function createQueue(Context $context, $queueName) { $result = $this->createSnsQsQueue($queueName); sleep(1); - + return $result; } }