This commit is contained in:
yansongda 2021-07-09 17:58:46 +08:00
parent 91b07a4903
commit 9a7a762a59
2 changed files with 4 additions and 4 deletions

View File

@ -4,6 +4,6 @@ declare(strict_types=1);
namespace Yansongda\Pay\Contract;
interface EventDispatcherInterface extends \Symfony\Component\EventDispatcher\EventDispatcherInterface
interface EventDispatcherInterface
{
}

View File

@ -38,7 +38,7 @@ class EventServiceProvider implements ServiceProviderInterface
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
*/
public function addListener(string $eventName, $listener, int $priority = 0)
public function addListener(string $eventName, callable $listener, int $priority = 0)
{
}
@ -57,7 +57,7 @@ class EventServiceProvider implements ServiceProviderInterface
*
* @param callable $listener The listener to remove
*/
public function removeListener(string $eventName, $listener)
public function removeListener(string $eventName, callable $listener)
{
}
@ -92,7 +92,7 @@ class EventServiceProvider implements ServiceProviderInterface
*
* @return int|null The event listener priority
*/
public function getListenerPriority(string $eventName, $listener): ?int
public function getListenerPriority(string $eventName, callable $listener): ?int
{
return null;
}