宝塔MSQ数据打不开,求大神解决

从宝塔进入数据库管理,提示如下:

123

求那位大神给解决,宝塔安装在内网。

declare(strict_type=1);是php7引入的严格类型检查模式的指定语法。你的错误显示不支持声明strict_types,表示你的php版本小于php7,升级php到7.4试试看

本身就安装了7.4

 

强制模式:

 

<?php

function foo($a) : int

{

  return $a;

}

foo(1.0);

以上代码可以正常执行,foo 函数返回 int 1,没有任何错误。

严格模式:

 

<?php

declare(strict_types=1);

function foo($a) : int

{

  return $a;

}

foo(1.0);

# PHP Fatal error: Uncaught TypeError: Return value of foo() must be of the type integer, float returned in test.php:6

在声明之后,就会触发致命错误。