Skip to content

Commit

Permalink
Fix EventDispatcherInterface fatal error PS 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt75 committed Jun 28, 2024
1 parent b150246 commit 4f8f3da
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions src/Event/EventDispatcherInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,17 @@

namespace PrestaShop\Module\PrestashopCheckout\Event;

use Psr\EventDispatcher\EventDispatcherInterface as PsrEventDispatcherInterface;

if (interface_exists(PsrEventDispatcherInterface::class)) {
interface EventDispatcherInterface extends PsrEventDispatcherInterface
{
}
} else {
/**
* Defines a dispatcher for events.
*/
interface EventDispatcherInterface
{
/**
* Defines a dispatcher for events.
* Provide all relevant listeners with an event to process.
*
* @param object $event the object to process
*
* @return object the Event that was passed, now modified by listeners
*/
interface EventDispatcherInterface
{
/**
* Provide all relevant listeners with an event to process.
*
* @param object $event the object to process
*
* @return object the Event that was passed, now modified by listeners
*/
public function dispatch($event);
}
public function dispatch($event);
}

0 comments on commit 4f8f3da

Please sign in to comment.