You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #59305 [HttpFoundation] Document thrown exception by parameter and input bag (VincentLanglet)
This PR was submitted for the 6.4 branch but it was squashed and merged into the 7.3 branch instead.
Discussion
----------
[HttpFoundation] Document thrown exception by parameter and input bag
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
This PR documents RuntimeException which might be thrown by ParameterBag and InputBag.
This
- warns the developper that calls like `$request->query->get()` might throw exception
- avoid PHPStan to report useless try/catch when writing
```
try {
$foo = $payload->getString('browser_language');
} catch (BadRequestException) {}
```
Commits
-------
c7764de [HttpFoundation] Document thrown exception by parameter and input bag
0 commit comments