Skip to content

Firefly III: a personal finances manager

Move phpstan config file for cleaner root.

James Colec3d8d70b3429
diff --git a/.ci/phpstan.neon b/.ci/phpstan.neon
new file mode 100644
index 0000000000..87bc120a54
--- /dev/null
+++ b/.ci/phpstan.neon
@@ -0,0 +1,19 @@
+includes:
+ - ../vendor/nunomaduro/larastan/extension.neon
+ - ../vendor/ergebnis/phpstan-rules/rules.neon
+ - ../vendor/phpstan/phpstan-deprecation-rules/rules.neon
+ - ../vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
+
+parameters:
+
+ paths:
+ - ../app
+ - ../config
+ - ../database
+ - ../resources
+ - ../routes
+ - ../tests
+ - ../bootstrap/app.php
+
+ # The level 8 is the highest level
+ level: 5
diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml
index 404ed6aaa1..81ed810dfe 100644
--- a/.github/workflows/laravel.yml
+++ b/.github/workflows/laravel.yml
@@ -152,4 +152,4 @@ jobs:
composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --no-suggest
- name: Execute PHPStan
- run: vendor/bin/phpstan analyse
+ run: vendor/bin/phpstan analyse -c .ci/phpstan.neon
diff --git a/phpstan.neon b/phpstan.neon
deleted file mode 100644
index ab28cd0ecd..0000000000
--- a/phpstan.neon
+++ /dev/null
@@ -1,19 +0,0 @@
-includes:
- - ./vendor/nunomaduro/larastan/extension.neon
- - ./vendor/ergebnis/phpstan-rules/rules.neon
- - ./vendor/phpstan/phpstan-deprecation-rules/rules.neon
- - ./vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
-
-parameters:
-
- paths:
- - app
- - config
- - database
- - resources
- - routes
- - tests
- - bootstrap/app.php
-
- # The level 8 is the highest level
- level: 5