From ff1944da7505b0c181a9510c166842fd7038707d Mon Sep 17 00:00:00 2001 From: Aydin Hassan Date: Tue, 11 Nov 2025 11:52:44 +0100 Subject: [PATCH] Add errorFormat input to PHPStan action --- phpstan/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpstan/action.yml b/phpstan/action.yml index 4fe3692..1451553 100644 --- a/phpstan/action.yml +++ b/phpstan/action.yml @@ -12,6 +12,9 @@ inputs: cacheDir: description: PHPStan cache dir default: ${{ github.workspace }}/var/phpstan + errorFormat: + description: "PHPStan error format" + default: "github" runs: using: "composite" @@ -34,4 +37,4 @@ runs: - name: Run PHPStan shell: bash working-directory: custom/plugins/${{ inputs.extensionName }} - run: ${GITHUB_WORKSPACE}/vendor/bin/phpstan analyze --error-format=github --no-progress + run: ${GITHUB_WORKSPACE}/vendor/bin/phpstan analyze --error-format=${{ inputs.errorFormat }} --no-progress