Skip to content

Commit ede07d4

Browse files
authored
Merge pull request #12 from stevenmaguire/sm-add-return-type-hint
Add return type hint to ButterCMS\Model\Model::jsonSerialize to suppress deprecation warning
2 parents 0973f70 + 6786e35 commit ede07d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ButterCMS/ButterCMS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class ButterCMS
1919
{
20-
protected const VERSION = '3.0.0';
20+
protected const VERSION = '3.0.1';
2121
protected const API_ROOT_URL = 'https://api.buttercms.com/v2/';
2222

2323
protected $maxRetryCount = 1;

src/ButterCMS/Model/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __call($name, $arguments)
3030
}
3131
}
3232

33-
public function jsonSerialize()
33+
public function jsonSerialize(): mixed
3434
{
3535
return get_object_vars($this);
3636
}

0 commit comments

Comments
 (0)