From fbaff5f7f63868e5701b8dd40de1f415533cbb2e Mon Sep 17 00:00:00 2001 From: ondrejj Date: Thu, 1 Jun 2023 11:04:14 +0200 Subject: [PATCH] Session: SessionSection class template annotation [Closes #225] --- src/Http/Session.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Http/Session.php b/src/Http/Session.php index 9b860c68..24229abd 100644 --- a/src/Http/Session.php +++ b/src/Http/Session.php @@ -300,6 +300,9 @@ public function getName(): string /** * Returns specified session section. + * @template T of SessionSection + * @param class-string $class + * @return T */ public function getSection(string $section, string $class = SessionSection::class): SessionSection {