Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/LiveComponent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
#[AsTwigComponent('random_number')]
class RandomNumberComponent
{
public function getRandomNumber(): string
public function getRandomNumber(): int
{
return rand(0, 1000);
}
Expand Down Expand Up @@ -202,7 +202,7 @@ class RandomNumberComponent
#[LiveProp]
public int $max = 1000;

public function getRandomNumber(): string
public function getRandomNumber(): int
{
return rand($this->min, $this->max);
}
Expand Down