From 85189df44ac8b1ae81b7260a065fa9b8761968af Mon Sep 17 00:00:00 2001 From: Lyrisbee Date: Tue, 12 Dec 2023 22:35:55 +0800 Subject: [PATCH] fix: allow null data --- src/Objects/WordPressError.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Objects/WordPressError.php b/src/Objects/WordPressError.php index 9fe24ef..53e8275 100644 --- a/src/Objects/WordPressError.php +++ b/src/Objects/WordPressError.php @@ -12,5 +12,5 @@ class WordPressError extends WordPressObject public string $message; - public stdClass $data; + public ?stdClass $data; }