Skip to content

Commit 79b584f

Browse files
committed
minor #2102 [TwigComponent] Add notice about needing phpdocumentor/reflection-docblock (dejagersh)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [TwigComponent] Add notice about needing `phpdocumentor/reflection-docblock` | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | NA | License | MIT This notice is present in this in section [Using DTO's on a LiveProp](https://symfony.com/bundles/ux-live-component/current/index.html#using-dto-s-on-a-liveprop) but not here: [LiveProp for Entities & More Complex Data](https://symfony.com/bundles/ux-live-component/current/index.html#liveprop-for-entities-more-complex-data) <img width="485" alt="image" src="https://github.com/user-attachments/assets/e6eb388a-d740-42fc-9d15-d2d2f8ac005e"> This is where I personally ran into trouble. https://symfony-devs.slack.com/archives/C01FN4EQNLX/p1724839078396519 Commits ------- 746025a [TwigComponent] Add notice about needing `phpdocumentor/reflection-docblock`
2 parents 5a0241f + 746025a commit 79b584f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,13 @@ can read::
474474
/** @var Product[] */
475475
public $products = [];
476476

477+
Collection type extraction from the docblock requires the ``phpdocumentor/reflection-docblock``
478+
library. Make sure it is installed in you application:
479+
480+
.. code-block:: terminal
481+
482+
$ composer require phpdocumentor/reflection-docblock
483+
477484
Writable Object Properties or Array Keys
478485
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
479486

0 commit comments

Comments
 (0)