We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601659b commit f6bea86Copy full SHA for f6bea86
1 file changed
fern/products/sdks/generators/php/changelog/2026-05-22.mdx
@@ -1,3 +1,12 @@
1
+## 2.10.4
2
+**`(fix):`** Generated discriminated unions no longer emit a `fromJson()` override. The base
3
+`JsonSerializableType::fromJson` now uses late static binding (`static::jsonDeserialize`)
4
+so subclasses' typed `jsonDeserialize` overrides dispatch correctly. This eliminates ~50
5
+lines of duplicated code per union and resolves a PHPStan strict failure where the union
6
+override's `$decodedJson` was narrowed to `array<array-key, mixed>` instead of
7
+`array<string, mixed>`.
8
+
9
10
## 2.10.3
11
**`(chore):`** Bump Node.js base image from 24.15 to 24.16.
12
0 commit comments