mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
Enable strict exception type hint checking in PHPStan and add exception type hints
This commit is contained in:
parent
559e4a5e05
commit
c4c8e7353f
26 changed files with 300 additions and 82 deletions
|
@ -30,3 +30,14 @@ parameters:
|
|||
- Emit404
|
||||
- Emit403
|
||||
- RedirectToLogin
|
||||
exceptions:
|
||||
check:
|
||||
missingCheckedExceptionInThrows: true
|
||||
tooWideThrowType: true
|
||||
uncheckedExceptionRegexes:
|
||||
-'#^Safe\\#'
|
||||
uncheckedExceptionClasses:
|
||||
- 'Exceptions\DatabaseQueryException'
|
||||
- 'PDOException'
|
||||
- 'TypeError'
|
||||
- 'ValueError'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue