Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php8 error #1989

Closed
xiaohuilam opened this issue Dec 8, 2020 · 8 comments
Closed

php8 error #1989

xiaohuilam opened this issue Dec 8, 2020 · 8 comments

Comments

@xiaohuilam
Copy link

环境

php 8.0

报错

[2020-12-08 02:41:03] local.ERROR: Method EasyWeChat\Kernel\Support\Collection::__set_state() must take exactly 1 argument {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Method EasyWeChat\Kernel\Support\Collection::__set_state() must take exactly 1 argument at /vendor/overtrue/wechat/src/Kernel/Support/Collection.php:347)
[stacktrace]
#0 {main}
"}
[2020-12-08 03:23:39] local.ERROR: Method EasyWeChat\Kernel\Support\Collection::__set_state() must be static {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Method EasyWeChat\Kernel\Support\Collection::__set_state() must be static at /vendor/overtrue/wechat/src/Kernel/Support/Collection.php:347)
[stacktrace]
#0 {main}

@xiaohuilam
Copy link
Author

xiaohuilam commented Dec 8, 2020

哦忘了说,我是通过laravel安装的,laravel-wechat还未更改依赖为 w7corp/easywechat 依旧是 overtrue/wechat
https://github.com/overtrue/laravel-wechat/blob/master/composer.json

@overtrue
Copy link
Collaborator

overtrue commented Dec 8, 2020

麻烦提问前先检查 issue 里是否已经提过,感谢。

#1987

@overtrue overtrue closed this as completed Dec 8, 2020
@xiaohuilam
Copy link
Author

麻烦提问前先检查 issue 里是否已经提过,感谢。

#1987

overtrue/laravel-wechat 依赖的是 overtrue/wechat 无法找到 w7corp/easywechat 的发行版

@overtrue
Copy link
Collaborator

overtrue commented Dec 8, 2020

为啥要找 w7corp/easywechat 发行版?麻烦看一下 README 先

@xiaohuilam
Copy link
Author

xiaohuilam commented Dec 8, 2020

为啥要找 w7corp/easywechat 发行版?麻烦看一下 README 先

我意思是 composer require overtrue/laravel-wechat 只能安装到 overtrue/wechat (5.1.7 => 5.2.3),
你这人怎么这么不好沟通呢?
自己 composer require overtrue/laravel-wechat 有那么难吗?
你 5.2.3 包含 8.0 报错的修复吗?

@overtrue
Copy link
Collaborator

overtrue commented Dec 8, 2020

  1. w7corp/easywechat 在 readme 头部写了,从 6.0 开始发版,6.0之前包名不变,目前最新版 5.2.3;
  2. 5.2.3 包含 PHP 8 的修复:5.2.1...5.2.3;
  3. 不要张口就来,除非你确实缺少基本的教养;

@xiaohuilam
Copy link
Author

xiaohuilam commented Dec 8, 2020 via email

@xiaohuilam
Copy link
Author

经过测试确实 5.2.3 是兼容的,
我是将旧项目服务器PHP升级到了 8,但依赖未composer update。

谢谢 overtrue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants