diff --git a/src/PhpPact/Consumer/Matcher/Matchers/Equality.php b/src/PhpPact/Consumer/Matcher/Matchers/Equality.php index 9c6e3a34..bbf779ee 100644 --- a/src/PhpPact/Consumer/Matcher/Matchers/Equality.php +++ b/src/PhpPact/Consumer/Matcher/Matchers/Equality.php @@ -16,9 +16,12 @@ public function __construct(private object|array|string|float|int|bool|null $val { } - public function jsonSerialize(): object + /** + * @return array + */ + public function jsonSerialize(): array { - return (object) [ + return [ 'pact:matcher:type' => $this->getType(), 'value' => $this->value ];