mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Fixed bug that Hyperf\Server\Entry\Logger
does not work when using psr/log 3.0
. (#4192)
This commit is contained in:
parent
98d41fa7ee
commit
8916691f53
1
.github/workflows/test-components.yml
vendored
1
.github/workflows/test-components.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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` 的支持。
|
||||
|
||||
## 修复
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user