From aea640e35741eb7adca517a22d9847cb16bda8b2 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Wed, 27 Sep 2023 09:18:50 -0400 Subject: [PATCH] Fixing wrong comment close + missing LiveProp --- src/LiveComponent/doc/index.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LiveComponent/doc/index.rst b/src/LiveComponent/doc/index.rst index a59b0dbce34..b1178b27a78 100644 --- a/src/LiveComponent/doc/index.rst +++ b/src/LiveComponent/doc/index.rst @@ -633,6 +633,7 @@ You can also use a DTO (i.e. data transfer object / any simple class) with LiveP class ComponentWithAddressDto { + #[LiveProp] public AddressDto $addressDto; } @@ -642,7 +643,8 @@ To work with a collection of DTOs, specify the collection type inside PHPDoc:: { /** * @var AddressDto[] - /* + */ + #[LiveProp] public array $addressDtoCollection; }