Skip to content

Commit 1ac94c1

Browse files
Merge branch '7.3' into 7.4
* 7.3: Fix remaining SplObjectStorage deprecation Remove calls to no-op functions, deprecated in PHP 8.5 Remove deprecated calls to deprecated methods of SplObjectStorage [Messenger] Show package installation hint also for amqps [TypeInfo] Fix converting list to string
2 parents e2e1ecd + 33e9149 commit 1ac94c1

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)