2019-03-18 10:58:21 +02:00
|
|
|
includes:
|
2019-03-19 13:37:02 +02:00
|
|
|
#- '../../vendor/phpstan/phpstan-strict-rules/rules.neon'
|
|
|
|
|
- '../../vendor/phpstan/phpstan-deprecation-rules/rules.neon'
|
2019-03-18 10:58:21 +02:00
|
|
|
parameters:
|
|
|
|
|
fileExtensions:
|
|
|
|
|
- php
|
|
|
|
|
excludes_analyse:
|
|
|
|
|
- %currentWorkingDirectory%/user/plugins/*/vendor/*
|
|
|
|
|
- %currentWorkingDirectory%/user/plugins/*/tests/*
|
2019-12-03 19:29:04 +02:00
|
|
|
- %currentWorkingDirectory%/user/plugins/gantry5/src/platforms
|
|
|
|
|
- %currentWorkingDirectory%/user/plugins/gantry5/src/classes/Gantry/Framework/Services/ErrorServiceProvider.php
|
2019-03-18 10:58:21 +02:00
|
|
|
bootstrap: tests/phpstan/plugins-bootstrap.php
|
2019-12-06 18:49:10 +02:00
|
|
|
reportUnmatchedIgnoredErrors: false
|
2019-03-18 10:58:21 +02:00
|
|
|
universalObjectCratesClasses:
|
|
|
|
|
- Grav\Common\Config\Config
|
|
|
|
|
- Grav\Common\Config\Languages
|
|
|
|
|
- Grav\Common\Config\Setup
|
|
|
|
|
- Grav\Common\Data\Data
|
|
|
|
|
- Grav\Common\GPM\Common\Package
|
|
|
|
|
- Grav\Common\GPM\Local\Package
|
|
|
|
|
- Grav\Common\GPM\Remote\Package
|
|
|
|
|
- Grav\Common\Session
|
2019-12-03 19:29:04 +02:00
|
|
|
- Gantry\Component\Config\Config
|
2019-12-06 18:49:10 +02:00
|
|
|
ignoreErrors:
|
|
|
|
|
# PSR-16 Exception interfaces do not extend \Throwable
|
|
|
|
|
- '#PHPDoc tag \@throws with type (.*|)?Psr\\SimpleCache\\(CacheException|InvalidArgumentException)(|.*)? is not subtype of Throwable#'
|
|
|
|
|
|
|
|
|
|
- '#Call to deprecated method stopPropagation\(\) of class Symfony\\Component\\EventDispatcher\\Event#'
|
|
|
|
|
- '#Call to an undefined method Grav\\Plugin\\ApartmentData\\Application\\Application::#'
|