Skip to content

Commit

Permalink
Merge pull request #10 from nikolaystrikhar/fix-json-serialize-php-8.1
Browse files Browse the repository at this point in the history
Fix jsonSerialize() PHP 8.1 compatibility
  • Loading branch information
borkweb authored Sep 12, 2023
2 parents b0f25e4 + bf7d951 commit 1e364cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function isPropertyTypeValid( string $key, $value ) : bool {
*
* @return array<string,mixed>
*/
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return get_object_vars( $this );
}
Expand Down

0 comments on commit 1e364cc

Please sign in to comment.