diff --git a/docs/en/logger.md b/docs/en/logger.md index ead5e4051..78c885eaa 100644 --- a/docs/en/logger.md +++ b/docs/en/logger.md @@ -45,16 +45,12 @@ declare(strict_types=1); namespace App\Service; -use Psr\Container\ContainerInterface; +use Psr\Log\LoggerInterface; use Hyperf\Logger\LoggerFactory; class DemoService { - - /** - * @var \Psr\Log\LoggerInterface - */ - protected $logger; + protected LoggerInterface $logger; public function __construct(LoggerFactory $loggerFactory) { diff --git a/docs/zh-cn/logger.md b/docs/zh-cn/logger.md index 4f6687e41..c89f57e23 100644 --- a/docs/zh-cn/logger.md +++ b/docs/zh-cn/logger.md @@ -45,7 +45,7 @@ declare(strict_types=1); namespace App\Service; -use Psr\Container\ContainerInterface; +use Psr\Log\LoggerInterface; use Hyperf\Logger\LoggerFactory; class DemoService diff --git a/docs/zh-hk/logger.md b/docs/zh-hk/logger.md index ab3624b6b..e25d910e5 100644 --- a/docs/zh-hk/logger.md +++ b/docs/zh-hk/logger.md @@ -45,7 +45,7 @@ declare(strict_types=1); namespace App\Service; -use Psr\Container\ContainerInterface; +use Psr\Log\LoggerInterface; use Hyperf\Logger\LoggerFactory; class DemoService diff --git a/docs/zh-tw/logger.md b/docs/zh-tw/logger.md index 288df66d1..a3545119c 100644 --- a/docs/zh-tw/logger.md +++ b/docs/zh-tw/logger.md @@ -45,7 +45,7 @@ declare(strict_types=1); namespace App\Service; -use Psr\Container\ContainerInterface; +use Psr\Log\LoggerInterface; use Hyperf\Logger\LoggerFactory; class DemoService