# 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\\_]+\(\)\.#' level: 9 paths: - %rootDir%/../../../lib - %rootDir%/../../../www - %rootDir%/../../../scripts - %rootDir%/../../../scripts/generate-feeds - %rootDir%/../../../scripts/generate-bulk-downloads - %rootDir%/../../../scripts/ingest-fa-payments - %rootDir%/../../../scripts/inject-chapter-navigation-footer - %rootDir%/../../../scripts/pending-payments-watchdog - %rootDir%/../../../scripts/process-pending-payments - %rootDir%/../../../scripts/update-ebook-database - %rootDir%/../../../scripts/update-patrons-circle - %rootDir%/../../../scripts/update-project-statuses - %rootDir%/../../../templates dynamicConstantNames: - SITE_STATUS - DONATION_DRIVES_ENABLED - DONATION_DRIVE_COUNTER_ENABLED earlyTerminatingMethodCalls: Template: - Emit403 - Emit404 - RedirectToLogin exceptions: check: missingCheckedExceptionInThrows: true tooWideThrowType: true uncheckedExceptionRegexes: -'#^Safe\\#' uncheckedExceptionClasses: - 'Exceptions\DatabaseQueryException' - 'Exceptions\MultiSelectMethodNotFoundException' - 'PDOException' - 'TypeError' - 'ValueError'