diff --git a/src/LiveComponent/doc/index.rst b/src/LiveComponent/doc/index.rst index 661c1c5210b..0ad6d21a64c 100644 --- a/src/LiveComponent/doc/index.rst +++ b/src/LiveComponent/doc/index.rst @@ -2741,7 +2741,7 @@ name with ``#[LiveArg]`` in front:: public function incrementProductCount(#[LiveArg] int $product) { $this->productCount++; - $this->lastProduct = $data['product']; + $this->lastProductId = $product; } And because event listeners are also actions, you can type-hint an argument