mirror of
https://github.com/typecho/typecho.git
synced 2025-01-16 20:18:19 +01:00
fix: xmlrpc message args (#1714)
This commit is contained in:
parent
99ffd36648
commit
d0b62eabe9
@ -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;
|
||||
|
@ -40,7 +40,7 @@ class Message
|
||||
|
||||
private array $currentStructName = []; // A stack as well
|
||||
|
||||
private string $currentTagContents;
|
||||
private string $currentTagContents = '';
|
||||
|
||||
/**
|
||||
* @param string $message
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user