From fa18669514ef33b542b55ddfbc8e8e4f56c19294 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Fri, 1 Sep 2023 01:24:45 +0200 Subject: [PATCH] Exclude WP itself from phpstan checks (and codescanning) --- phpstan.neon | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpstan.neon b/phpstan.neon index dc6c2f5..a759bbe 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,6 +7,10 @@ parameters: - inc/ - plugin.php excludePaths: + analyseAndScan: + # Prevent phpstan from multiple definitions of the same things, + # because we already use phpstan/wordpress-stubs + - wordpress/ analyse: - vendor/ # "/wp-content/" is created during composer install,