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

thinkphp 8 + php 8.4 + swoole 6.0 无法启动,走 redis 驱动模式无法启动直接报错,sync 模式不会崩 #192

Closed
smithyj opened this issue Jan 17, 2025 · 5 comments

Comments

@smithyj
Copy link

smithyj commented Jan 17, 2025

thinkphp 8 + php 8.4 + swoole 6.0 无法启动,走 redis 驱动模式无法启动直接报错,sync 模式不会崩

@smithyj
Copy link
Author

smithyj commented Jan 18, 2025

@yunwuxin @liu21st @yangweijie @vus520 麻烦各位大佬看下这个问题

@yunwuxin
Copy link
Member

你这样提问 让人怎么回答

@smithyj
Copy link
Author

smithyj commented Jan 18, 2025

@yunwuxin 稍等,我添加下仓库地址,你直接按 README.md 就能跑起来测试了

@smithyj
Copy link
Author

smithyj commented Jan 18, 2025

@yunwuxin 复现仓库地址:https://github.com/smithyj/test-backend

奇怪又能访问了,但是出现一个新的问题,能放入Redis队列,但是job无法执行,原因是 think-queue 依赖了一个第三方库,这个第三方库没有适配 8.4 版本的 PHP,所以无法执行
这是其中的 log 日志
[2025-01-19T00:01:43+08:00][error] [1]During class fetch: Uncaught think\exception\ErrorException: Carbon\Traits\Date::getDaysFromStartOfWeek(): Implicitly marking parameter $weekStartsAt as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/nesbot/carbon/src/Carbon/Traits/Date.php:1394

@yunwuxin
Copy link
Member

依赖更新了

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