From 321a34a9d3b5fb19505d7aec197e10fbcf60e1fa Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 7 Feb 2023 13:32:32 -0800 Subject: [PATCH] Make phpstan configuration more flexible --- .gitignore | 1 + phpstan.neon => phpstan.neon.dist | 0 phpstan.neon.example | 8 ++++++++ 3 files changed, 9 insertions(+) rename phpstan.neon => phpstan.neon.dist (100%) create mode 100644 phpstan.neon.example 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%%'