Skip to content

Commit

Permalink
Merge pull request #2 from shellrent/jsonserialize
Browse files Browse the repository at this point in the history
JsonSerializable fix
  • Loading branch information
svdigital-development authored Jan 4, 2024
2 parents 7884021 + 8458222 commit 54fc17e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Types/GenericType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public function __construct( string $json = null ) {

/**
* Ritorna le proprietà della classe serializzabili
* @return array
* @return array|mixed
*/
public function jsonSerialize() {
public function jsonSerialize(): mixed {
$properties = [];

foreach ( get_object_vars( $this ) as $key => $value ) {
Expand Down

0 comments on commit 54fc17e

Please sign in to comment.