Skip to content

Commit

Permalink
Session: SessionSection class template annotation [Closes #225]
Browse files Browse the repository at this point in the history
  • Loading branch information
ojanota authored and dg committed Nov 4, 2024
1 parent 1d9986e commit f445fa6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ public function getName(): string

/**
* Returns specified session section.
* @template T of SessionSection
* @param class-string<T> $class
* @return T
*/
public function getSection(string $section, string $class = SessionSection::class): SessionSection
{
Expand Down

0 comments on commit f445fa6

Please sign in to comment.