Skip to content

Commit

Permalink
Merge pull request #12 from stevenmaguire/sm-add-return-type-hint
Browse files Browse the repository at this point in the history
Add return type hint to ButterCMS\Model\Model::jsonSerialize to suppress deprecation warning
  • Loading branch information
jakelumetta authored Oct 6, 2022
2 parents 0973f70 + 6786e35 commit ede07d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ButterCMS/ButterCMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class ButterCMS
{
protected const VERSION = '3.0.0';
protected const VERSION = '3.0.1';
protected const API_ROOT_URL = 'https://api.buttercms.com/v2/';

protected $maxRetryCount = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/ButterCMS/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __call($name, $arguments)
}
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return get_object_vars($this);
}
Expand Down

0 comments on commit ede07d4

Please sign in to comment.