Skip to content

Commit

Permalink
Update: run php-cs-fixer on PHP v7.4 as min supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
thePanz committed Mar 18, 2024
1 parent f0ba28d commit 4d8148a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 7.4
tools: php-cs-fixer:3.51, cs2pr

- uses: actions/cache@v4
with:
path: '.php-cs-fixer.cache'
key: ${{ github.repository }}-8.2-phpcsfixer-${{ github.ref_name }}
key: ${{ github.repository }}-7.4-phpcsfixer-${{ github.ref_name }}
restore-keys: |
${{ github.repository }}-8.2-phpcsfixer-master
${{ github.repository }}-8.2-phpcsfixer-
${{ github.repository }}-7.4-phpcsfixer-master
${{ github.repository }}-7.4-phpcsfixer-
- name: Run PHP-CS-Fixer
# Using cs2pr settings, see: https://github.com/shivammathur/setup-php#tools-with-checkstyle-support
run: 'php-cs-fixer fix --dry-run --format checkstyle | cs2pr'
run: 'php-cs-fixer fix --dry-run --format=checkstyle | cs2pr'

0 comments on commit 4d8148a

Please sign in to comment.