Commit f549e7a
committed
minor #45810 [HttpFoundation] Propagate SessionNotFoundException in Request::getSession docBlock (a.dmitryuk)
This PR was squashed before being merged into the 6.1 branch.
Discussion
----------
[HttpFoundation] Propagate SessionNotFoundException in Request::getSession docBlock
| Q | A
| ------------- | ---
| Branch? | 6.1 for features / 4.4, 5.4 or 6.0 for bug fixes <!-- see below -->
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| License | MIT
| Doc PR |
Looks like [RequestStack::getSession](https://github.com/symfony/symfony/blob/6.1/src/Symfony/Component/HttpFoundation/RequestStack.php#L99) throws `SessionNotFoundException` exception in Docblock , but [Request](https://github.com/symfony/symfony/blob/6.1/src/Symfony/Component/HttpFoundation/Request.php#L694) don't.
The PR adds missing Docblock to Request to solve misleadings.
Commits
-------
b887ff2 [HttpFoundation] Propagate SessionNotFoundException in Request::getSession docBlock1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
| 693 | + | |
| 694 | + | |
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
| |||
0 commit comments