From b51f058ab8d0e821343ef7a76923bca90930d800 Mon Sep 17 00:00:00 2001
From: Bart Jaskulski <bjaskulski@protonmail.com>
Date: Fri, 17 Nov 2023 08:42:36 +0100
Subject: [PATCH] chore: add static analysis

Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com>
---
 composer.json | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/composer.json b/composer.json
index 22b0db0..dbb82ea 100644
--- a/composer.json
+++ b/composer.json
@@ -45,7 +45,10 @@
     "wpdesk/wp-basic-requirements": "^3",
     "phpunit/phpunit": "^8 || ^9",
     "symfony/filesystem": "^6.2",
-    "brain/monkey": "^2.6"
+    "brain/monkey": "^2.6",
+    "phpstan/phpstan": "^1.10",
+    "szepeviktor/phpstan-wordpress": "^1.3",
+    "phpstan/extension-installer": "^1.3"
   },
   "suggest": {
     "wpdesk/wp-basic-requirements": "Enables your plugin to check an environment requirement before instantiation, e.g. PHP version or active plugins"
@@ -55,5 +58,10 @@
   },
   "scripts": {
     "test": "vendor/bin/phpunit --bootstrap tests/bootstrap.php ./tests"
+  },
+  "config": {
+    "allow-plugins": {
+      "phpstan/extension-installer": true
+    }
   }
 }
-- 
GitLab