feat: phpcs non interactive mode and min php version set (#5549)
continuous-integration/drone/push Build is passing

Minimal version of #5538 that does not change any php files while still hopefully unblocking ci.

Quick way to unblock #5528 and #5512.

Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5549
Reviewed-by: tobiasd <tobiasd@fsfe.org>
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
This commit was merged in pull request #5549.
This commit is contained in:
2025-12-04 12:06:33 +00:00
committed by tobiasd
parent 1cf8647cc6
commit 416b0c8804
3 changed files with 8 additions and 2 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ output
__pycache__
#Nltk
.nltk_data
#phpcsfixer cache
.php-cs-fixer.cache
# Secrets
# docker compose
.env
+5
View File
@@ -0,0 +1,5 @@
{
"require": {
"php": "^8.4"
}
}
+1 -1
View File
@@ -16,7 +16,7 @@ pre-commit:
glob: "*.php"
exclude:
- "fsfe.org/cgi-bin/PHPMailer/*.php"
run: for file in {staged_files}; do php-cs-fixer fix "$file"; done
run: for file in {staged_files}; do php-cs-fixer --no-interaction fix "$file"; done
stage_fixed: true
fail_on_changes: "ci"
shfmt: