Skip to content

Commit

Permalink
minor symfony#2402 [LiveComponent] Fix variable in docs (xDeSwa)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 2.x branch.

Discussion
----------

[LiveComponent] Fix variable in docs

I think it's a wrong variable

Commits
-------

f39ab6f [LiveComponent] Fix variable in docs
  • Loading branch information
smnandre committed Nov 22, 2024
2 parents 83ae9e8 + f39ab6f commit 23b3a25
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 23b3a25

Please sign in to comment.