Skip to content

Commit b7dc69e

Browse files
Merge branch '6.4' into 7.3
* 6.4: 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
2 parents 497f73a + b0cf316 commit b7dc69e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Debug/TraceableEventDispatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ private function preProcess(string $eventName): void
259259
$this->wrappedListeners[$eventName][] = $wrappedListener;
260260
$this->dispatcher->removeListener($eventName, $listener);
261261
$this->dispatcher->addListener($eventName, $wrappedListener, $priority);
262-
$this->callStack->attach($wrappedListener, [$eventName, $this->currentRequestHash]);
262+
$this->callStack[$wrappedListener] = [$eventName, $this->currentRequestHash];
263263
}
264264
}
265265

@@ -283,7 +283,7 @@ private function postProcess(string $eventName): void
283283
if ($listener->wasCalled()) {
284284
$this->logger?->debug('Notified event "{event}" to listener "{listener}".', $context);
285285
} else {
286-
$this->callStack->detach($listener);
286+
unset($this->callStack[$listener]);
287287
}
288288

289289
if (null !== $this->logger && $skipped) {

0 commit comments

Comments
 (0)