Skip to content

Commit bc5205f

Browse files
committed
Refactor
1 parent 1bacbbc commit bc5205f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/reusable_linter.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,26 +97,28 @@ jobs:
9797
uses: shivammathur/setup-php@v2
9898
with:
9999
tools: phive
100-
php-version: ${{ matrix.version }}
100+
php-version: ${{ matrix.php_version }}
101101
coverage: "none"
102102

103103
- name: Install overtrue/phplint (v3.4)
104-
if: ${{ matrix.version }} == '7.4'
104+
if: ${{ matrix.php_version }} == '7.4'
105105
run: |
106106
phive install overtrue/phplint@~3.4.0 --force-accept-unsigned --target ./bin
107107
108108
- name: Install overtrue/phplint (v4.5)
109-
if: ${{ matrix.version }} == '8.0'
109+
if: ${{ matrix.php_version }} == '8.0'
110110
run: |
111111
phive install overtrue/phplint@~4.5.0 --force-accept-unsigned --target ./bin
112112
113113
- name: Install overtrue/phplint (v9.4)
114-
if: ${{ matrix.version }} == '8.1'
114+
if: ${{ matrix.php_version }} == '8.1'
115115
run: |
116116
phive install overtrue/phplint@~9.4.0 --force-accept-unsigned --target ./bin
117117
118118
- name: Install overtrue/phplint (v9.5)
119-
if: ${{ matrix.version }} != '7.4' && ${{ matrix.version }} != '8.0' && ${{ matrix.version }} != '8.1'
119+
if: ${{ matrix.php_version }} != '7.4' \
120+
&& ${{ matrix.php_version }} != '8.0' \
121+
&& ${{ matrix.php_version }} != '8.1'
120122
run: |
121123
phive install overtrue/phplint@~9.5.0 --force-accept-unsigned --target ./bin
122124

0 commit comments

Comments
 (0)