1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-01 19:00:20 +02:00
Files
php-monolog/phpstan.neon.dist
Jordi Boggiano 06f81e4717 Upgrade phpstan
2024-04-12 13:27:23 +02:00

33 lines
1.1 KiB
Plaintext

parameters:
level: 8
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: true
paths:
- src/
# - tests/
excludePaths:
- 'src/Monolog/Handler/PHPConsoleHandler.php'
ignoreErrors:
- '#zend_monitor_|ZEND_MONITOR_#'
- '#MongoDB\\(Client|Collection)#'
# Cannot resolve this cleanly as different normalizers return different types but it is safe
- message: '#Return type \(string\) of method Monolog\\Formatter\\LineFormatter::normalizeException\(\) should be compatible with return type \(array\) of method Monolog\\Formatter\\NormalizerFormatter::normalizeException\(\)#'
paths:
- src/Monolog/Formatter/LineFormatter.php
# can be removed when rollbar/rollbar can be added as dev require again (needs to allow monolog 3.x)
- '#Rollbar\\RollbarLogger#'
# legacy elasticsearch namespace failures
- '# Elastic\\Elasticsearch\\#'
includes:
- phpstan-baseline.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon