Skip to content

Commit

Permalink
Merge pull request #393 from tienvx/revert-object-to-array
Browse files Browse the repository at this point in the history
refactor: Revert object to array
  • Loading branch information
tienvx committed Dec 17, 2023
2 parents 5a59f42 + d4b5e76 commit b673c29
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/PhpPact/Consumer/Matcher/Matchers/Equality.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ public function __construct(private object|array|string|float|int|bool|null $val
{
}

public function jsonSerialize(): object
/**
* @return array<string, mixed>
*/
public function jsonSerialize(): array
{
return (object) [
return [
'pact:matcher:type' => $this->getType(),
'value' => $this->value
];
Expand Down

0 comments on commit b673c29

Please sign in to comment.