Closed chaituan closed 4 months ago
使用的时候 会报错: Declaration of Monolog\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::emergency($message, array $context = [])
把monolog 换到2.0才能正常。 但是用composer的时候会默认安装为3.0。
请问一下这个应该怎么处理??
贴一下:
composer why psr/log
不好意思,和ci框架里面的日志有冲突,已解决🙏
我用的环境
问题及现象
使用的时候 会报错: Declaration of Monolog\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::emergency($message, array $context = [])
把monolog 换到2.0才能正常。 但是用composer的时候会默认安装为3.0。
请问一下这个应该怎么处理??