From 0f627ba5236733159dcbe68ba4821781412ba45c Mon Sep 17 00:00:00 2001
From: Jan Wennrich <jan.wennrich@pcsg.de>
Date: Tue, 2 Apr 2024 11:10:52 +0200
Subject: [PATCH] chore: add phpstan config

---
 .gitignore        | 1 +
 .phive/phars.xml  | 1 +
 phpstan.dist.neon | 6 ++++++
 3 files changed, 8 insertions(+)
 create mode 100644 phpstan.dist.neon

diff --git a/.gitignore b/.gitignore
index c50f923..8e58d9d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 tools/
+phpstan.neon
diff --git a/.phive/phars.xml b/.phive/phars.xml
index ec1b26d..aa3895f 100644
--- a/.phive/phars.xml
+++ b/.phive/phars.xml
@@ -1,3 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <phive xmlns="https://phar.io/phive">
+  <phar name="phpstan" version="1.10.60" installed="1.10.60" location="./tools/phpstan" copy="false"/>
 </phive>
diff --git a/phpstan.dist.neon b/phpstan.dist.neon
new file mode 100644
index 0000000..f557b7a
--- /dev/null
+++ b/phpstan.dist.neon
@@ -0,0 +1,6 @@
+parameters:
+    level: 6
+    paths:
+        - src
+    bootstrapFiles:
+        - tests/phpstan-bootstrap.php
-- 
GitLab