-
-
Notifications
You must be signed in to change notification settings - Fork 587
Open
Description
| Q | A |
|---|---|
| Bug report? | yes |
| Feature request? | yes |
| BC Break report? | no |
| RFC? | no |
How is one supposed to inline a virtual property? The following does not work:
#[Serializer\VirtualProperty(name: 'xD', exp: 'object.format("c")', options: [[Serializer\Inline::class, []]])]
class Foo extends \DateTimeImmutable { ... }(Aside, it shouldn't be necessary to specify a name for an inlined property, nor should it be necessary to specify an empty array after the inline class).
Expected Result
{Foo: "2026-12-31T12:30:00+00:00"}
Actual Result
{Foo: {}}
Metadata
Metadata
Assignees
Labels
No labels