Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 4bbb48b

Browse files
committed
Ensure we don't overwrite our CallbackHandler before pulling priority
1 parent 56a64b8 commit 4bbb48b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controller/Plugin/Forward.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ protected function detachProblemListeners(SharedEvents $sharedEvents)
184184

185185
// zend-eventmanager v2 compatibility:
186186
if ($currentCallback instanceof CallbackHandler) {
187-
$currentCallback = $currentCallback->getCallback();
188-
$priority = $currentCallback->getMetadatum('priority');
187+
$currentCallback = $currentEvent->getCallback();
188+
$priority = $currentEvent->getMetadatum('priority');
189189
}
190190

191191
// If we have an array, grab the object

0 commit comments

Comments
 (0)