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

难道你们都没有这个致命错误? #178

Closed
895268679long opened this issue Apr 14, 2024 · 6 comments
Closed

难道你们都没有这个致命错误? #178

895268679long opened this issue Apr 14, 2024 · 6 comments

Comments

@895268679long
Copy link

$groupKey = match (true) {
is_bool($groupKey) => (int) $groupKey,
$groupKey instanceof \Stringable => (string) $groupKey,
default => $groupKey,
};
错误是语法解析错误: syntax error, unexpected '=>' (T_DOUBLE_ARROW)

我用的是fastadmin

@jae-jae
Copy link
Owner

jae-jae commented Apr 15, 2024

match 是 PHP 8.1 引入的新特性,确认一下你的 PHP 版本,另外报错的这段代码并不是 QueryList 的代码

@37521484
Copy link

可是大哥 你官网写的php要求是7.1啊 现在php7安装了 这个版本又有php8的代码

@jae-jae
Copy link
Owner

jae-jae commented Apr 21, 2024

我都说了报错的这段代码并不是 QueryList 的代码,你检查一下报错文件是哪一个?定位一下是哪个包导致的报错

@jae-jae jae-jae closed this as completed Apr 26, 2024
@895268679long
Copy link
Author

895268679long commented Apr 27, 2024

我说了报错的可能代码不是 QueryList 的代码,你检查一下报错文件是哪一个?定位一下是哪个包导致的报错

不是很清楚。又出现了奇怪的错误
[ error ] [64]Declaration of QL\Collect\Support\Collection::jsonSerialize(): array must be compatible with QL\Collect\Support\Enumerable::jsonSerialize(): QL\Collect\Support\mixed[/vendor/jaeger/querylist/src/Collect/Support/Collection.php:855]

另外我php版本是7.4 我很想用,但是安装总是有问题。 另外安装后又出现了奇怪的问题。 我的脚本原来正常运行, 昨天装了插件后报错了一夜。fack 错误内容是Array to string conversion。 我并没有找到具体是哪里。 赶紧卸载了插件

@acrossmountain
Copy link

我说了报错的可能代码不是 QueryList 的代码,你检查一下报错文件是哪一个?定位一下是哪个包导致的报错

不是很清楚。又出现了奇怪的错误 [ error ] [64]Declaration of QL\Collect\Support\Collection::jsonSerialize(): array must be compatible with QL\Collect\Support\Enumerable::jsonSerialize(): QL\Collect\Support\mixed[/vendor/jaeger/querylist/src/Collect/Support/Collection.php:855]

4.2.8 能正常运行。

@895268679long
Copy link
Author

我说了报错的可能代码不是 QueryList 的代码,你检查一下报错文件是哪一个?定位一下是哪个包导致的报错

不是很清楚。又出现了奇怪的错误 [ error ] [64]Declaration of QL\Collect\Support\Collection::jsonSerialize(): array must be compatible with QL\Collect\Support\Enumerable::jsonSerialize(): QL\Collect\Support\mixed[/vendor/jaeger/querylist/src/Collect/Support/Collection.php:855]

4.2.8 能正常运行。

谢谢。我试了 这个版本似乎是正常的,终于可与用了

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

4 participants