Posted via @Jetbrains: what you think about this @php code?…
Commit
2c817fb
plz @nunomaduro explanation ?
To be fair, while the array structure isn’t enforced by PHP itself, it's partially typed through PHPDoc.
My bigger concern is that we're coupling the domain object to a specific message representation. I'd rather see that responsibility moved to a dedicated serializer.