Files
Grav/tests/phpstan/plugins.neon

39 lines
1.7 KiB
Plaintext
Raw Normal View History

includes:
#- '../../vendor/phpstan/phpstan-strict-rules/rules.neon'
- '../../vendor/phpstan/phpstan-deprecation-rules/rules.neon'
parameters:
fileExtensions:
- php
excludes_analyse:
- %currentWorkingDirectory%/user/plugins/*/vendor/*
- %currentWorkingDirectory%/user/plugins/*/tests/*
- %currentWorkingDirectory%/user/plugins/gantry5/src/platforms
- %currentWorkingDirectory%/user/plugins/gantry5/src/classes/Gantry/Framework/Services/ErrorServiceProvider.php
bootstrap: tests/phpstan/plugins-bootstrap.php
2019-12-06 18:49:10 +02:00
reportUnmatchedIgnoredErrors: false
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
- Gantry\Component\Config\Config
2019-12-09 12:53:17 +02:00
dynamicConstantNames:
- GRAV_CLI
- GANTRY_DEBUGGER
- GANTRY5_DEBUG
- GANTRY5_VERSION
- GANTRY5_VERSION_DATE
- GANTRY5_PLATFORM
- GANTRY5_ROOT
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::#'
- '#Parameter \#1 \$lineNumberStyle of method ScssPhp\\ScssPhp\\Compiler::setLineNumberStyle\(\) expects string, int given#'