Skip to content

A free open source IT asset/license management system

Make phpstan configuration more flexible

Marcus Mooref99f6d32fa6f
diff --git a/.gitignore b/.gitignore
index 078a7e4b8a..e49e69c9ae 100755
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
.env
.env.dusk.*
!.env.dusk.example
+phpstan.neon
.idea
/bin/
/bootstrap/compiled.php
diff --git a/phpstan.neon b/phpstan.neon.dist
similarity index 100%
rename from phpstan.neon
rename to phpstan.neon.dist
diff --git a/phpstan.neon.example b/phpstan.neon.example
new file mode 100644
index 0000000000..a9bc1a30de
--- /dev/null
+++ b/phpstan.neon.example
@@ -0,0 +1,8 @@
+# Copy this file to "phpstan.neon" and update the parameters section as needed
+
+includes:
+ - phpstan.neon.dist
+
+parameters:
+ # https://phpstan.org/user-guide/output-format#opening-file-in-an-editor
+ editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'