Skip to content

Commit

Permalink
[LiveComponent] Fix variable in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xDeSwa authored and smnandre committed Nov 22, 2024
1 parent 83ae9e8 commit f39ab6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f39ab6f

Please sign in to comment.