Fix BC layer for events
parent
82b7fdf4c1
commit
eadc167b12
|
@ -205,10 +205,6 @@ class EventDispatcher
|
||||||
*/
|
*/
|
||||||
protected function checkListenerExpectedEvent($target, Event $event)
|
protected function checkListenerExpectedEvent($target, Event $event)
|
||||||
{
|
{
|
||||||
if (!$event instanceof Script\Event) {
|
|
||||||
return $event;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$reflected = new \ReflectionParameter($target, 0);
|
$reflected = new \ReflectionParameter($target, 0);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|
Loading…
Reference in New Issue