w7corp / easywechat

📦 一个 PHP 微信 SDK

Home Page:https://easywechat.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

报错:Declaration of Monolog\\Logger::emergency

chaituan opened this issue · comments

我用的环境

  • PHP 版本:8.1.27
  • overtrue/wechat 版本:5.35.1
  • 是否使用了框架?框架名称:codeigniter 4

问题及现象

使用的时候 会报错:
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框架里面的日志有冲突,已解决🙏