fix: xmlrpc message args (#1714)

This commit is contained in:
joyqi 2024-01-22 14:36:10 +08:00 committed by GitHub
parent 99ffd36648
commit d0b62eabe9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -29,9 +29,9 @@ class Error
* 构造函数
*
* @param integer $code 错误代码
* @param string|null $message 错误消息
* @param string $message 错误消息
*/
public function __construct(int $code, ?string $message)
public function __construct(int $code, string $message)
{
$this->code = $code;
$this->message = $message;

View File

@ -40,7 +40,7 @@ class Message
private array $currentStructName = []; // A stack as well
private string $currentTagContents;
private string $currentTagContents = '';
/**
* @param string $message

View File

@ -17,7 +17,7 @@ class Value
* @param mixed $data
* @param string|null $type
*/
public function __construct($data, ?string $type)
public function __construct($data, ?string $type = null)
{
$this->data = $data;
if (!$type) {