Skip to content

Commit 54fc17e

Browse files
Merge pull request #2 from shellrent/jsonserialize
JsonSerializable fix
2 parents 7884021 + 8458222 commit 54fc17e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Types/GenericType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public function __construct( string $json = null ) {
3737

3838
/**
3939
* Ritorna le proprietà della classe serializzabili
40-
* @return array
40+
* @return array|mixed
4141
*/
42-
public function jsonSerialize() {
42+
public function jsonSerialize(): mixed {
4343
$properties = [];
4444

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

0 commit comments

Comments
 (0)