Skip to content

Commit 6984700

Browse files
Remove deprecated calls to deprecated methods of SplObjectStorage
1 parent 46cceb8 commit 6984700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Transport/RoundRobinTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function getNextTransport(MessageInterface $message): ?TransportInterf
103103
}
104104

105105
if ((microtime(true) - $this->deadTransports[$transport]) > $this->retryPeriod) {
106-
$this->deadTransports->detach($transport);
106+
unset($this->deadTransports[$transport]);
107107

108108
break;
109109
}
@@ -120,7 +120,7 @@ protected function getNextTransport(MessageInterface $message): ?TransportInterf
120120

121121
protected function isTransportDead(TransportInterface $transport): bool
122122
{
123-
return $this->deadTransports->contains($transport);
123+
return $this->deadTransports->offsetExists($transport);
124124
}
125125

126126
protected function getInitialCursor(): int

0 commit comments

Comments
 (0)