Skip to content

Commit e74aa83

Browse files
ojanotadg
authored andcommitted
Session: SessionSection class template annotation [Closes #225]
1 parent 85b71ee commit e74aa83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Http/Session.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ public function getName(): string
300300

301301
/**
302302
* Returns specified session section.
303+
* @template T of SessionSection
304+
* @param class-string<T> $class
305+
* @return T
303306
*/
304307
public function getSection(string $section, string $class = SessionSection::class): SessionSection
305308
{

0 commit comments

Comments
 (0)