Skip to content

php8.1+ $reqOpt as nullable is deprecated, the explicit nullable type must be used instead in #441

@xbchome

Description

@xbchome

Implicitly marking parameter $reqOpt as nullable is deprecated, the explicit nullable type must be used instead in
vendor\qiniu\php-sdk\src\Qiniu\Storage\UploadManager.php on line 27
vendor\qiniu\php-sdk\src\Qiniu\Storage\BucketManager.php on line 23
类似这种:
public function __construct(
Auth $auth,
Config $config = null,
$proxy = null,
$proxy_auth = null,
$proxy_user_password = null
)
要改成
public function __construct(
Auth $auth,
?Config $config = null,
$proxy = null,
$proxy_auth = null,
$proxy_user_password = null
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions