2019-03-13 07:15:22 +01:00
includes:
2019-03-13 09:49:08 +02:00
#- vendor/phpstan/phpstan-strict-rules/rules.neon
2019-03-13 07:15:22 +01:00
parameters:
fileExtensions:
- php
- dist
bootstrap: tests/phpstan/phpstan-bootstrap.php
excludes_analyse:
- system/src/Grav/Common/Errors/Resources/layout.html.php
2019-03-13 09:49:08 +02:00
reportUnmatchedIgnoredErrors: false
2019-03-13 07:15:22 +01:00
ignoreErrors:
# Errors that needs some more thinking (design...)
# Needed: full coverage (probably with admin plugin...) then redesign constructor
-
message: '#Grav\\Common\\GPM\\Remote\\GravCore::__construct\(\) does not call parent constructor from Grav\\Common\\GPM\\Remote\\AbstractPackageCollection#'
2019-03-13 09:49:08 +02:00
path: 'system/src/Grav/Common/GPM/Remote/GravCore.php'
2019-03-13 07:15:22 +01:00
# Needed: psr-17 (http-factories) support (through decorator or further investigations)
-
message: '#Call to an undefined static method Grav\\Framework\\Psr7\\Stream::create\(\).#'
2019-03-13 09:49:08 +02:00
path: 'system/src/Grav/Framework/Form/FormFlashFile.php'
2019-03-13 07:15:22 +01:00
# Those errors are about plugins (need to find a better solution)
-
message: '#Call to static method sendEmail\(\) on an unknown class Grav\\Plugin\\Email\\Utils.#'
2019-03-13 09:49:08 +02:00
path: 'system/src/Grav/Common/Scheduler/Job.php'
2019-03-13 07:15:22 +01:00
# Can be ignored, after fopen there's always an $http_response_header locally available
-
message: '#Variable \$http_response_header in isset\(\) always exists and is not nullable.#'
2019-03-13 09:49:08 +02:00
path: 'system/src/Grav/Common/GPM/Response.php'
2019-03-13 07:15:22 +01:00
# Those errors can be ignored (they depends on installed extensions)
-
2019-03-13 09:49:08 +02:00
message: '#Instantiated class (Memcache|Memcached|Redis|RedisException) not found#'
path: 'system/src/Grav/Common/Cache.php'
2019-03-13 07:15:22 +01:00
-
2019-03-13 09:49:08 +02:00
message: '#on an unknown class Collator#'
path: 'system/src/Grav/Common/Page/Pages.php'