framework icon indicating copy to clipboard operation
framework copied to clipboard

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

Open wolf-leo opened this issue 1 year ago • 1 comments

所属功能组件

其它

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

wolf-leo avatar Jul 11 '24 02:07 wolf-leo

PHP 8.4 目前还没正式发布

big-dream avatar Jul 11 '24 02:07 big-dream