From 5fc47d69c77c354b42294fa66ab96c597e08338c Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Wed, 26 Jul 2023 15:17:35 +0200 Subject: [PATCH] Remove \ReflectionProperty::setAccessible(true) calls --- Debug/TraceableEventDispatcher.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Debug/TraceableEventDispatcher.php b/Debug/TraceableEventDispatcher.php index f1b9823..e25a664 100644 --- a/Debug/TraceableEventDispatcher.php +++ b/Debug/TraceableEventDispatcher.php @@ -348,7 +348,6 @@ private function getListenersWithPriority(): array $result = []; $allListeners = new \ReflectionProperty(EventDispatcher::class, 'listeners'); - $allListeners->setAccessible(true); foreach ($allListeners->getValue($this->dispatcher) as $eventName => $listenersByPriority) { foreach ($listenersByPriority as $priority => $listeners) {