mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 06:10:36 -04:00
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
# This is the config file for PHPStan when run from the command line.
|
|
|
|
includes:
|
|
- ../../vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
|
|
|
|
parameters:
|
|
ignoreErrors:
|
|
# Ignore errors caused by Template static class reflection
|
|
- '#Call to an undefined static method Template::[a-zA-Z0-9\\_]+\(\)\.#'
|
|
|
|
# Ignore errors caused by no type hints on class properties, as that's not available till PHP 7.4
|
|
- '#Property .+? has no type specified.#'
|
|
|
|
# Ignore setters for properties that accept several types
|
|
- '#Property Artwork::\$Tags \(array<ArtworkTag>\) does not accept.+#'
|
|
level:
|
|
8
|
|
paths:
|
|
- %rootDir%/../../../lib
|
|
- %rootDir%/../../../www
|
|
- %rootDir%/../../../scripts
|
|
dynamicConstantNames:
|
|
- SITE_STATUS
|
|
- DONATION_HOLIDAY_ALERT_ON
|
|
- DONATION_ALERT_ON
|
|
- DONATION_DRIVE_ON
|
|
- DONATION_DRIVE_COUNTER_ON
|
|
earlyTerminatingMethodCalls:
|
|
Template:
|
|
- Emit404
|
|
- Emit403
|
|
- RedirectToLogin
|
|
exceptions:
|
|
check:
|
|
missingCheckedExceptionInThrows: true
|
|
tooWideThrowType: true
|
|
uncheckedExceptionRegexes:
|
|
-'#^Safe\\#'
|
|
uncheckedExceptionClasses:
|
|
- 'Exceptions\DatabaseQueryException'
|
|
- 'PDOException'
|
|
- 'TypeError'
|
|
- 'ValueError'
|