From 7525b948da704b27a245c225ff33e230d976a1ef Mon Sep 17 00:00:00 2001 From: Ahmed Alaa <92916738+AhmedAlaa4611@users.noreply.github.com> Date: Sat, 25 Oct 2025 15:16:24 +0300 Subject: [PATCH 1/4] Update Repository.php --- src/Illuminate/Config/Repository.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Illuminate/Config/Repository.php b/src/Illuminate/Config/Repository.php index 08801213a0f3..5086b18dab74 100644 --- a/src/Illuminate/Config/Repository.php +++ b/src/Illuminate/Config/Repository.php @@ -84,6 +84,8 @@ public function getMany($keys) * @param string $key * @param (\Closure():(string|null))|string|null $default * @return string + * + * @throws \InvalidArgumentException */ public function string(string $key, $default = null): string { @@ -104,6 +106,8 @@ public function string(string $key, $default = null): string * @param string $key * @param (\Closure():(int|null))|int|null $default * @return int + * + * @throws \InvalidArgumentException */ public function integer(string $key, $default = null): int { @@ -124,6 +128,8 @@ public function integer(string $key, $default = null): int * @param string $key * @param (\Closure():(float|null))|float|null $default * @return float + * + * @throws \InvalidArgumentException */ public function float(string $key, $default = null): float { @@ -144,6 +150,8 @@ public function float(string $key, $default = null): float * @param string $key * @param (\Closure():(bool|null))|bool|null $default * @return bool + * + * @throws \InvalidArgumentException */ public function boolean(string $key, $default = null): bool { @@ -164,6 +172,8 @@ public function boolean(string $key, $default = null): bool * @param string $key * @param (\Closure():(array|null))|array|null $default * @return array + * + * @throws \InvalidArgumentException */ public function array(string $key, $default = null): array { From cfc7da796eedf2b6c3a3130307dc9256ccae83e0 Mon Sep 17 00:00:00 2001 From: Ahmed Alaa <92916738+AhmedAlaa4611@users.noreply.github.com> Date: Sat, 25 Oct 2025 15:18:16 +0300 Subject: [PATCH 2/4] Update PacksPhpRedisValues.php --- src/Illuminate/Redis/Connections/PacksPhpRedisValues.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Illuminate/Redis/Connections/PacksPhpRedisValues.php b/src/Illuminate/Redis/Connections/PacksPhpRedisValues.php index a64c4f4ce3dc..0c890dd62039 100644 --- a/src/Illuminate/Redis/Connections/PacksPhpRedisValues.php +++ b/src/Illuminate/Redis/Connections/PacksPhpRedisValues.php @@ -34,6 +34,9 @@ trait PacksPhpRedisValues * * @param array $values * @return array + * + * @throws \RuntimeException + * @throws \UnexpectedValueException */ public function pack(array $values): array { From 5f256dac2574c8235faa9de4cee21e4eef2bc58a Mon Sep 17 00:00:00 2001 From: Ahmed Alaa <92916738+AhmedAlaa4611@users.noreply.github.com> Date: Sat, 25 Oct 2025 15:20:26 +0300 Subject: [PATCH 3/4] Update SymfonySessionDecorator.php --- src/Illuminate/Session/SymfonySessionDecorator.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Illuminate/Session/SymfonySessionDecorator.php b/src/Illuminate/Session/SymfonySessionDecorator.php index 365aca670333..54a899ea7a7e 100644 --- a/src/Illuminate/Session/SymfonySessionDecorator.php +++ b/src/Illuminate/Session/SymfonySessionDecorator.php @@ -161,6 +161,8 @@ public function isStarted(): bool /** * {@inheritdoc} + * + * @throws \BadMethodCallException */ public function registerBag(SessionBagInterface $bag): void { @@ -169,6 +171,8 @@ public function registerBag(SessionBagInterface $bag): void /** * {@inheritdoc} + * + * @throws \BadMethodCallException */ public function getBag(string $name): SessionBagInterface { @@ -177,6 +181,8 @@ public function getBag(string $name): SessionBagInterface /** * {@inheritdoc} + * + * @throws \BadMethodCallException */ public function getMetadataBag(): MetadataBag { From 2e9a785a4b89bfaba1579140276cd15841145947 Mon Sep 17 00:00:00 2001 From: Ahmed Alaa <92916738+AhmedAlaa4611@users.noreply.github.com> Date: Sat, 25 Oct 2025 15:31:26 +0300 Subject: [PATCH 4/4] Re-run tests