Skip to content

Commit

Permalink
minor #1147 Fixing wrong comment close + missing LiveProp (weaverryan)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 2.x branch.

Discussion
----------

Fixing wrong comment close + missing LiveProp

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| Tickets       | None
| License       | MIT

Commits
-------

aea640e Fixing wrong comment close + missing LiveProp
  • Loading branch information
weaverryan committed Oct 2, 2023
2 parents 3be6340 + aea640e commit 5e5a512
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -642,7 +643,8 @@ To work with a collection of DTOs, specify the collection type inside PHPDoc::
{
/**
* @var AddressDto[]
/*
*/
#[LiveProp]
public array $addressDtoCollection;
}

Expand Down

0 comments on commit 5e5a512

Please sign in to comment.