| 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
How is one supposed to inline a virtual property? The following does not work:
(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: {}}