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 { 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 { 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 {