mirror of
https://gitee.com/yansongda/pay.git
synced 2024-11-30 11:17:43 +08:00
fix: #448
This commit is contained in:
parent
91b07a4903
commit
9a7a762a59
@ -4,6 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Contract;
|
||||
|
||||
interface EventDispatcherInterface extends \Symfony\Component\EventDispatcher\EventDispatcherInterface
|
||||
interface EventDispatcherInterface
|
||||
{
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user