Fixed bug that Hyperf\Server\Entry\Logger does not work when using psr/log 3.0. (#4192)

This commit is contained in:
李铭昕 2021-11-01 11:02:11 +08:00 committed by GitHub
parent 98d41fa7ee
commit 8916691f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 11 deletions

View File

@ -206,6 +206,7 @@ jobs:
composer require symfony/console --dev -W
composer analyse src/framework
fi
composer analyse src/server/src/Entry/Logger.php
composer analyse src/logger
composer test src/framework
composer test src/logger

View File

@ -4,7 +4,7 @@
## Added
- [#4181](https://github.com/hyperf/hyperf/pull/4181) Added versions (v1.0, v2.0, v3.0) support for `psr/log`.
- [#4181](https://github.com/hyperf/hyperf/pull/4181) [#4192](https://github.com/hyperf/hyperf/pull/4192) Added versions (v1.0, v2.0, v3.0) support for `psr/log`.
## Fixed

View File

@ -4,7 +4,7 @@
## 新增
- [#4181](https://github.com/hyperf/hyperf/pull/4181) 为框架增加 `psr/log` 组件版本 `v1.0`、`v2.0`、`v3.0` 的支持。
- [#4181](https://github.com/hyperf/hyperf/pull/4181) [#4192](https://github.com/hyperf/hyperf/pull/4192) 为框架增加 `psr/log` 组件版本 `v1.0`、`v2.0`、`v3.0` 的支持。
## 修复

View File

@ -15,39 +15,39 @@ use Psr\Log\LoggerInterface;
class Logger implements LoggerInterface
{
public function emergency($message, array $context = [])
public function emergency($message, array $context = []): void
{
}
public function alert($message, array $context = [])
public function alert($message, array $context = []): void
{
}
public function critical($message, array $context = [])
public function critical($message, array $context = []): void
{
}
public function error($message, array $context = [])
public function error($message, array $context = []): void
{
}
public function warning($message, array $context = [])
public function warning($message, array $context = []): void
{
}
public function notice($message, array $context = [])
public function notice($message, array $context = []): void
{
}
public function info($message, array $context = [])
public function info($message, array $context = []): void
{
}
public function debug($message, array $context = [])
public function debug($message, array $context = []): void
{
}
public function log($level, $message, array $context = [])
public function log($level, $message, array $context = []): void
{
}
}