gpt4 book ai didi

php - 为什么phpmyadmin突然加载不出来

转载 作者:行者123 更新时间:2023-12-04 18:58:43 26 4
gpt4 key购买 nike

刚刚升级到 Ubuntu 22.04,现在我的 phpadmin 将无法加载。我收到以下错误

Parse error: syntax error, unexpected 'static' (T_STATIC) in /usr/share/php/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 272
我打开了文件,这是该段中的特定代码。
public function addResource(ResourceInterface $resource): static
{
if (!$this->trackResources) {
return $this;
}

if ($resource instanceof GlobResource && $this->inVendors($resource->getPrefix())) {
return $this;
}

$this->resources[(string) $resource] = $resource;

return $this;
}
昨天升级前,一切正常。有人有什么建议吗?

最佳答案

自 8.0 版起,PHP 允许 static作为类方法的返回类型。显然您的 PHP 版本已降级。

关于php - 为什么phpmyadmin突然加载不出来,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72061079/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com