Skip to content

Commit

Permalink
Merge pull request #2 from shellrent/fix_jsonserializable
Browse files Browse the repository at this point in the history
Fix JsonSerializable implementations
  • Loading branch information
svdigital-development authored Jun 28, 2023
2 parents 44ea4c6 + c620694 commit 9699303
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"require": {
"guzzlehttp/guzzle": "^7.5",
"php": "^7.4 || ^8.0",
"php": "^8.1",
"ext-json": "*"
}
}
2 changes: 1 addition & 1 deletion src/Support/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function toArray() {
];
}

public function jsonSerialize() {
public function jsonSerialize(): mixed {
return [$this->toArray()];
}
}
2 changes: 1 addition & 1 deletion src/Support/FilterCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function add( Filter $filter ) {
$this->Filters[] = $filter->toArray();
}

public function jsonSerialize() {
public function jsonSerialize(): mixed {
return $this->Filters;
}
}

0 comments on commit 9699303

Please sign in to comment.