diff --git a/src/crontab/src/LoggerInterface.php b/src/crontab/src/LoggerInterface.php index 817aa5985..f68983d02 100644 --- a/src/crontab/src/LoggerInterface.php +++ b/src/crontab/src/LoggerInterface.php @@ -11,6 +11,6 @@ declare(strict_types=1); */ namespace Hyperf\Crontab; -interface LoggerInterface +interface LoggerInterface extends \Psr\Log\LoggerInterface { } diff --git a/src/crontab/src/Process/CrontabDispatcherProcess.php b/src/crontab/src/Process/CrontabDispatcherProcess.php index 93d8f2d15..0ed01cdc8 100644 --- a/src/crontab/src/Process/CrontabDispatcherProcess.php +++ b/src/crontab/src/Process/CrontabDispatcherProcess.php @@ -16,7 +16,7 @@ use Hyperf\Contract\StdoutLoggerInterface; use Hyperf\Coordinator\Constants; use Hyperf\Coordinator\CoordinatorManager; use Hyperf\Crontab\Event\CrontabDispatcherStarted; -use Hyperf\Crontab\LoggerInterface; +use Psr\Log\LoggerInterface; use Hyperf\Crontab\Scheduler; use Hyperf\Crontab\Strategy\StrategyInterface; use Hyperf\Process\AbstractProcess;