Skip to content

Commit f6bea86

Browse files
Update changelogs from fern repo (#5609)
Co-authored-by: dsinghvi <10870189+dsinghvi@users.noreply.github.com>
1 parent 601659b commit f6bea86

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

fern/products/sdks/generators/php/changelog/2026-05-22.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
110
## 2.10.3
211
**`(chore):`** Bump Node.js base image from 24.15 to 24.16.
312

0 commit comments

Comments
 (0)