Skip to content

Commit

Permalink
Add php version requirement and jsonSerialize return type
Browse files Browse the repository at this point in the history
  • Loading branch information
mbonneau committed Feb 18, 2022
1 parent 694adb0 commit 705b7ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"replace": {
"voryx/thruway-message": "1.*"
},

"require": {
"php": "^7.1 | ^8"
},
"require-dev": {
"phpunit/phpunit": "^5.5.4"
}
Expand Down
2 changes: 1 addition & 1 deletion src/Message/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function getMessageParts()
* @return mixed data which can be serialized by <b>json_encode</b>,
* which is a value of any type other than a resource.
*/
public function jsonSerialize()
public function jsonSerialize() : array
{
return $this->getMessageParts();
}
Expand Down

0 comments on commit 705b7ab

Please sign in to comment.