Skip to content

Commit

Permalink
Remove \ReflectionProperty::setAccessible(true) calls
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Jul 26, 2023
1 parent 8a9a52c commit 5fc47d6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Debug/TraceableEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5fc47d6

Please sign in to comment.