Skip to content

Commit

Permalink
Merge pull request #1266 from PrestaShopCorp/fix/EventDispatcherInter…
Browse files Browse the repository at this point in the history
…face-ps6

Fix EventDispatcherInterface fatal error PS 1.6
  • Loading branch information
Matt75 authored Aug 14, 2024
2 parents 91f094d + 4f8f3da commit a8dbcf5
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 a8dbcf5

Please sign in to comment.