Skip to content

Commit

Permalink
Fixed a deprecation warning with Symfony 4.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienHarper committed Feb 6, 2020
1 parent 195b654 commit 8eadd94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DoctrineAuditBundle/Event/AuditEvent.php
Expand Up @@ -5,8 +5,8 @@
use Symfony\Component\EventDispatcher\Event as ComponentEvent;
use Symfony\Contracts\EventDispatcher\Event as ContractsEvent;

if (class_exists(ComponentEvent::class)) {
abstract class AuditEvent extends ComponentEvent
if (class_exists(ContractsEvent::class)) {
abstract class AuditEvent extends ContractsEvent
{
/**
* @var array
Expand All @@ -27,7 +27,7 @@ final public function getPayload(): array
}
}
} else {
abstract class AuditEvent extends ContractsEvent
abstract class AuditEvent extends ComponentEvent
{
/**
* @var array
Expand Down

0 comments on commit 8eadd94

Please sign in to comment.