From 59485391c121af0d41371404d717c4c6d2380864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=A4drich?= <11225821+shaedrich@users.noreply.github.com> Date: Thu, 25 Sep 2025 12:48:56 +0200 Subject: [PATCH 1/2] Improve typing of `\Illiminate\Testing\TestResponse::assertSessionMissing()` --- src/Illuminate/Testing/TestResponse.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Testing/TestResponse.php b/src/Illuminate/Testing/TestResponse.php index cce3584f4d0b..eb523ddb5ef1 100644 --- a/src/Illuminate/Testing/TestResponse.php +++ b/src/Illuminate/Testing/TestResponse.php @@ -1691,8 +1691,9 @@ public function assertSessionHasErrorsIn($errorBag, $keys = [], $format = null) /** * Assert that the session does not have a given key. * - * @param string|array $key - * @param mixed $value + * @template T of (\Closure(mixed): bool)|mixed + * @param string|T[] $key + * @param T $value * @return $this */ public function assertSessionMissing($key, $value = null) From c2c78506ff86833d2c0103bf66c7117478497ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=A4drich?= <11225821+shaedrich@users.noreply.github.com> Date: Thu, 25 Sep 2025 12:56:15 +0200 Subject: [PATCH 2/2] StyleCI --- src/Illuminate/Testing/TestResponse.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Testing/TestResponse.php b/src/Illuminate/Testing/TestResponse.php index eb523ddb5ef1..1577c65fcb6e 100644 --- a/src/Illuminate/Testing/TestResponse.php +++ b/src/Illuminate/Testing/TestResponse.php @@ -1692,6 +1692,7 @@ public function assertSessionHasErrorsIn($errorBag, $keys = [], $format = null) * Assert that the session does not have a given key. * * @template T of (\Closure(mixed): bool)|mixed + * * @param string|T[] $key * @param T $value * @return $this