From e3f7c1df8defb55efbc442a51cee9e904239bb6e Mon Sep 17 00:00:00 2001 From: "tien.xuan.vo" Date: Mon, 30 Sep 2024 22:22:53 +0700 Subject: [PATCH] refactor: PHPStan max level > Fix wrong return type --- src/PhpPact/Xml/XmlText.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/PhpPact/Xml/XmlText.php b/src/PhpPact/Xml/XmlText.php index 395afbfa..b21b251e 100644 --- a/src/PhpPact/Xml/XmlText.php +++ b/src/PhpPact/Xml/XmlText.php @@ -11,10 +11,7 @@ public function __construct(private string|float|int|bool|null|MatcherInterface { } - /** - * @return array - */ - public function jsonSerialize(): array + public function jsonSerialize(): mixed { if ($this->content instanceof MatcherInterface) { return $this->content->jsonSerialize();