Skip to content

Commit

Permalink
fix: add true flag to json_decode function (#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
RivGames committed Mar 10, 2024
1 parent eae0ba5 commit 9f351a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language/oop5/decon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class Product {
}
public static function fromJson(string $json): static {
$data = json_decode($json);
$data = json_decode($json, true);
return new static($data['id'], $data['name']);
}
Expand Down

0 comments on commit 9f351a1

Please sign in to comment.