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.4.2环境下启动报错,nullable 的问题 #31

Open
mryfan opened this issue Dec 27, 2024 · 6 comments
Open

php8.4.2环境下启动报错,nullable 的问题 #31

mryfan opened this issue Dec 27, 2024 · 6 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@mryfan
Copy link

mryfan commented Dec 27, 2024

需在在/src/helpers.php文件的66行,方法名为config 里面加上问号,类似这样
function config(?string $key = null, mixed $default = null): mixed
{
if(AbstractBuilder::$debug) {
Config::load(config_path());
return Config::get($key, $default);
}else{
return \config($key, $default);
}
}

这个的"$key" 的类型 string的前面

@mryfan
Copy link
Author

mryfan commented Dec 27, 2024

当运行命令行之后,也就是创建队列的文件后,重新启动。也会出现大量类似的问题
Fatal error: Uncaught ErrorException: React\Promise\RejectedPromise::then(): Implicitly marking parameter $onFulfilled as nullable is deprecated, the explicit nullable type must be used instead in /tmp/webman/vendor/react/promise/src/RejectedPromise.php on line 21

里面好多方法都需要加上问号"?"或者是 null 类型

@mryfan
Copy link
Author

mryfan commented Dec 27, 2024

不止这一个文件呢

@mryfan
Copy link
Author

mryfan commented Dec 27, 2024

当运行命令行之后,也就是创建队列的文件后,重新启动。也会出现大量类似的问题 Fatal error: Uncaught ErrorException: React\Promise\RejectedPromise::then(): Implicitly marking parameter $onFulfilled as nullable is deprecated, the explicit nullable type must be used instead in /tmp/webman/vendor/react/promise/src/RejectedPromise.php on line 21

里面好多方法都需要加上问号"?"或者是 null 类型

这个是因为对等依赖的问题,我找到了

@mryfan
Copy link
Author

mryfan commented Dec 27, 2024

当运行命令行之后,也就是创建队列的文件后,重新启动。也会出现大量类似的问题 Fatal error: Uncaught ErrorException: React\Promise\RejectedPromise::then(): Implicitly marking parameter $onFulfilled as nullable is deprecated, the explicit nullable type must be used instead in /tmp/webman/vendor/react/promise/src/RejectedPromise.php on line 21
里面好多方法都需要加上问号"?"或者是 null 类型

这个是因为对等依赖的问题,我找到了

image
这个包引起的

@mryfan
Copy link
Author

mryfan commented Dec 27, 2024

这样的情况下,只能换别的rabbitMQ 客户端 使用了,毕竟第一个问题即使改了,也没法用

@chaz6chez
Copy link
Member

目前不支持php8.4,新版计划是自维护bunny

@chaz6chez chaz6chez added bug Something isn't working enhancement New feature or request labels Jan 3, 2025
@chaz6chez chaz6chez moved this to Todo in webman-rabbitmq Jan 3, 2025
@chaz6chez chaz6chez self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants