mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 13:36:15 +00:00
Fix phpstan issues.
This commit is contained in:
@@ -6,6 +6,13 @@ includes:
|
||||
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
- '#is not allowed to extend#'
|
||||
- '#is neither abstract nor final#'
|
||||
- '#has a nullable return type declaration#'
|
||||
- '#with a nullable type declaration#'
|
||||
-
|
||||
message: '#Control structures using switch should not be used.#'
|
||||
path: ../app/Api/V1/Controllers/Data/DestroyController.php
|
||||
paths:
|
||||
- ../app
|
||||
- ../database
|
||||
|
||||
@@ -30,6 +30,6 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
# Do static code analysis.
|
||||
# ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress
|
||||
./vendor/bin/phpstan analyse -c .ci/phpstan.neon
|
||||
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --error-format=table > phpstan.txt
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user