From 8dd46febcb8a431e288eba08ee123e2840f08b85 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Wed, 27 Sep 2023 09:42:25 +0200 Subject: [PATCH] Add phpstan/extension-installer so that default includes are already known to PHPStan --- composer.json | 1 + defaults/phpstan.neon | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/composer.json b/composer.json index eaeb48b..6fbe45f 100644 --- a/composer.json +++ b/composer.json @@ -64,6 +64,7 @@ "phpmetrics/phpmetrics": "^2.8", "phpspec/prophecy": "*", "phpspec/prophecy-phpunit": "*", + "phpstan/extension-installer": "^1.3", "phpstan/phpstan-deprecation-rules": "*", "phpunit/phpunit": "*", "squizlabs/php_codesniffer": "*", diff --git a/defaults/phpstan.neon b/defaults/phpstan.neon index 3229b41..4d9e246 100644 --- a/defaults/phpstan.neon +++ b/defaults/phpstan.neon @@ -14,6 +14,3 @@ parameters: - '#Plugin definitions cannot be altered.#' excludePaths: - '*/tests/*.php' -includes: - - /var/www/html/vendor/mglaman/phpstan-drupal/extension.neon - - /var/www/html/vendor/phpstan/phpstan-deprecation-rules/rules.neon -- GitLab