Skip to content

Commit 4a65393

Browse files
authored
Update index.rst
1 parent 83ae9e8 commit 4a65393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2741,7 +2741,7 @@ name with ``#[LiveArg]`` in front::
27412741
public function incrementProductCount(#[LiveArg] int $product)
27422742
{
27432743
$this->productCount++;
2744-
$this->lastProduct = $data['product'];
2744+
$this->lastProduct = $product;
27452745
}
27462746

27472747
And because event listeners are also actions, you can type-hint an argument

0 commit comments

Comments
 (0)