From 606d6e4a111bd28d8d747fc864451b9a88d54500 Mon Sep 17 00:00:00 2001 From: Antoine Makdessi Date: Wed, 8 Dec 2021 09:41:17 +0100 Subject: [PATCH] Update README.md --- src/LiveComponent/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LiveComponent/README.md b/src/LiveComponent/README.md index af2273d293f..9c0c8c3fb2e 100644 --- a/src/LiveComponent/README.md +++ b/src/LiveComponent/README.md @@ -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); } @@ -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); }