Skip to content

Commit ee9eb76

Browse files
authored
Updated phpstan workflow (#4461)
* Updated phpstan workflow * php84 * php84.x * workflow fix
1 parent 1cca899 commit ee9eb76

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/phpstan.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ on:
88
jobs:
99
phpstan:
1010
name: Analyze
11-
runs-on: ${{ matrix.operating-system }}
12-
strategy:
13-
matrix:
14-
operating-system: [ubuntu-latest]
15-
php-versions: ['7.4', '8.4']
11+
runs-on: [ubuntu-latest]
1612

1713
steps:
1814
- name: Setup PHP
1915
uses: shivammathur/setup-php@v2
2016
with:
21-
php-version: ${{ matrix.php-versions }}
17+
php-version: 7.4
2218

2319
- uses: actions/checkout@v4
2420

@@ -40,7 +36,7 @@ jobs:
4036
uses: actions/cache/restore@v4
4137
with:
4238
path: .phpstan.cache
43-
key: phpstan-result-cache-${{ matrix.php-versions }}-${{ github.run_id }}
39+
key: phpstan-result-cache-${{ github.run_id }}
4440
restore-keys: |
4541
phpstan-result-cache-
4642
@@ -52,4 +48,4 @@ jobs:
5248
if: always()
5349
with:
5450
path: .phpstan.cache
55-
key: phpstan-result-cache-${{ matrix.php-versions }}-${{ github.run_id }}
51+
key: phpstan-result-cache-${{ github.run_id }}

.phpstan.dist.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ includes:
33
- .phpstan.dist.baseline.neon
44
- phar://phpstan.phar/conf/bleedingEdge.neon
55
parameters:
6+
phpVersion:
7+
min: 70433
8+
max: 80499
69
magentoRootPath: %currentWorkingDirectory%
710
fileExtensions:
811
- php

0 commit comments

Comments
 (0)