framework
framework copied to clipboard
PHP8.4+版本中大量异常报错
所属功能组件
其它
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
PHP 8.4 目前还没正式发布