Skip to content

Commit ee2334b

Browse files
committed
minor #194 [LiveComponent] Fix doc typo (94noni)
This PR was merged into the 2.x branch. Discussion ---------- [LiveComponent] Fix doc typo Made from phone while reading this readme Did not check fully if other types are wrong Commits ------- 606d6e4 Update README.md
2 parents 72527fe + 606d6e4 commit ee2334b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LiveComponent/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
117117
#[AsTwigComponent('random_number')]
118118
class RandomNumberComponent
119119
{
120-
public function getRandomNumber(): string
120+
public function getRandomNumber(): int
121121
{
122122
return rand(0, 1000);
123123
}
@@ -202,7 +202,7 @@ class RandomNumberComponent
202202
#[LiveProp]
203203
public int $max = 1000;
204204

205-
public function getRandomNumber(): string
205+
public function getRandomNumber(): int
206206
{
207207
return rand($this->min, $this->max);
208208
}

0 commit comments

Comments
 (0)