Skip to content

Commit c2d2f2a

Browse files
committed
update phpstan workflow template - PHP range from 8.1 to 8.4
1 parent 3c98d37 commit c2d2f2a

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/Template/.github/workflows/phpstan.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
php-versions: ['7.4', '8.0', '8.1', '8.2']
29+
php-versions: ['8.1', '8.2', '8.3', '8.4']
3030

3131
steps:
3232
- name: Checkout
@@ -64,10 +64,15 @@ jobs:
6464

6565
- name: Install dependencies
6666
run: |
67+
OPTIONS='--no-progress --no-interaction --prefer-dist --optimize-autoloader'
68+
if [[ '${{ matrix.php-versions }}' == '8.4' ]]; then
69+
OPTIONS="$OPTIONS --ignore-platform-reqs"
70+
fi
71+
6772
if [ -f composer.lock ]; then
68-
composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
73+
composer install $OPTIONS
6974
else
70-
composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
75+
composer update $OPTIONS
7176
fi
7277
7378
- name: Run static analysis

0 commit comments

Comments
 (0)