From 746025a638f19f4196c4ed85f81cfbbd34bbf214 Mon Sep 17 00:00:00 2001 From: Johan de Jager Date: Wed, 28 Aug 2024 16:13:12 +0200 Subject: [PATCH] [TwigComponent] Add notice about needing `phpdocumentor/reflection-docblock` --- src/LiveComponent/doc/index.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/LiveComponent/doc/index.rst b/src/LiveComponent/doc/index.rst index d858a42dc3b..741b45a0e58 100644 --- a/src/LiveComponent/doc/index.rst +++ b/src/LiveComponent/doc/index.rst @@ -474,6 +474,13 @@ can read:: /** @var Product[] */ public $products = []; +Collection type extraction from the docblock requires the ``phpdocumentor/reflection-docblock`` +library. Make sure it is installed in you application: + +.. code-block:: terminal + + $ composer require phpdocumentor/reflection-docblock + Writable Object Properties or Array Keys ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~