top-think / framework

ThinkPHP Framework
http://www.thinkphp.cn
Other
2.72k stars 1.05k forks source link

PHP8.4+版本中大量异常报错 #3026

Open wolf-leo opened 1 month ago

wolf-leo commented 1 month ago

所属功能组件

其它

ThinkPHP 版本

8.0.3

操作系统

Windows、Linux

错误信息

php8.4+出现大量异常报错

Deprecated: Implicitly marking parameter $params as nullable is deprecated, the explicit nullable type must be used instead in ... on line xxx PHP RFC: Deprecate implicitly nullable parameter types

The following example:

class Foo {
    public function bar(int $x = null, float $y) {
        // ...
    }
}

should end up looking like:

class Foo {
    public function bar(?int $x, float $y) {
        // ...
    }
}

其它说明

No response

big-dream commented 1 month ago

PHP 8.4 目前还没正式发布