Skip to content

Commit

Permalink
Fix event class
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Jan 31, 2020
1 parent 24ae97e commit c3462b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
use Symfony\Contracts\EventDispatcher\Event as ContractEvent;
use Symfony\Component\EventDispatcher\Event as ComponentEvent;

if (interface_exists(ContractEvent::class)) {
class Event extends ContractEvent
if (class_exists(ComponentEvent::class)) {
class Event extends ComponentEvent
{
}
} else {
class Event extends ComponentEvent
class Event extends ContractEvent
{
}
}

0 comments on commit c3462b8

Please sign in to comment.