Skip to content

Commit

Permalink
JsonSerializable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobia Zanarella committed Jan 4, 2024
1 parent 7884021 commit 8458222
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 8458222

Please sign in to comment.