From 8afe004a7fe16f4025901fb2ab66921ef6654c0d Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Fri, 6 Dec 2019 18:49:10 +0200 Subject: [PATCH] Improve plugin testing --- tests/phpstan/plugins.neon | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/phpstan/plugins.neon b/tests/phpstan/plugins.neon index 5d3d7d831..890dcfd87 100644 --- a/tests/phpstan/plugins.neon +++ b/tests/phpstan/plugins.neon @@ -10,7 +10,7 @@ parameters: - %currentWorkingDirectory%/user/plugins/gantry5/src/platforms - %currentWorkingDirectory%/user/plugins/gantry5/src/classes/Gantry/Framework/Services/ErrorServiceProvider.php bootstrap: tests/phpstan/plugins-bootstrap.php - reportUnmatchedIgnoredErrors: true + reportUnmatchedIgnoredErrors: false universalObjectCratesClasses: - Grav\Common\Config\Config - Grav\Common\Config\Languages @@ -21,3 +21,9 @@ parameters: - Grav\Common\GPM\Remote\Package - Grav\Common\Session - Gantry\Component\Config\Config + 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::#'