1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-01-17 20:58:32 +01:00
php-monolog/phpstan.neon.dist
Jordi Boggiano a3ba6445a4
Cleanups
2022-03-21 14:18:56 +01:00

27 lines
949 B
Plaintext

parameters:
level: 8
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: true
paths:
- src/
# - tests/
ignoreErrors:
- '#zend_monitor_|ZEND_MONITOR_#'
- '#MongoDB\\(Client|Collection)#'
# Invalid type info on Redis multi
- '#^Cannot call method ltrim\(\) on int\|false.$#'
# 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#'
includes:
- phpstan-baseline.neon