Skip to content

Commit 4d1a808

Browse files
committed
Bump qa tools
1 parent 790426f commit 4d1a808

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.github/workflows/push.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
setup:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@master
11+
- uses: actions/checkout@v2
1212

1313
- name: Restore/cache tools folder
1414
uses: actions/cache@v1
@@ -44,7 +44,7 @@ jobs:
4444
name: Unit tests
4545
needs: setup
4646
steps:
47-
- uses: actions/checkout@master
47+
- uses: actions/checkout@v2
4848

4949
- name: composer
5050
uses: docker://composer
@@ -80,7 +80,7 @@ jobs:
8080
- phpunit-with-coverage
8181

8282
steps:
83-
- uses: actions/checkout@master
83+
- uses: actions/checkout@v2
8484

8585
- name: Setup cache environment
8686
id: cache-env
@@ -97,7 +97,7 @@ jobs:
9797
key: ${{ steps.cache-env.outputs.key }}
9898

9999
- name: Setup PHP
100-
uses: shivammathur/setup-php@master
100+
uses: shivammathur/setup-php@v2
101101
with:
102102
php-version: ${{ matrix.php-versions }}
103103
extension: ${{ env.extensions }}
@@ -134,7 +134,7 @@ jobs:
134134
runs-on: ubuntu-latest
135135
needs: [setup, phpunit]
136136
steps:
137-
- uses: actions/checkout@master
137+
- uses: actions/checkout@v2
138138
- name: Restore/cache vendor folder
139139
uses: actions/cache@v1
140140
with:
@@ -144,15 +144,15 @@ jobs:
144144
all-build-${{ hashFiles('**/composer.lock') }}
145145
all-build-
146146
- name: Code style check
147-
uses: phpDocumentor/coding-standard@master
147+
uses: phpDocumentor/coding-standard@latest
148148
with:
149149
args: -s
150150

151151
phpstan:
152152
runs-on: ubuntu-latest
153153
needs: [setup, phpunit]
154154
steps:
155-
- uses: actions/checkout@master
155+
- uses: actions/checkout@v2
156156
- name: composer
157157
uses: docker://composer
158158
env:
@@ -184,7 +184,7 @@ jobs:
184184
- phpunit
185185

186186
steps:
187-
- uses: actions/checkout@master
187+
- uses: actions/checkout@v2
188188

189189
- name: Setup cache environment
190190
id: cache-env
@@ -201,7 +201,7 @@ jobs:
201201
key: ${{ steps.cache-env.outputs.key }}
202202

203203
- name: Setup PHP
204-
uses: shivammathur/setup-php@master
204+
uses: shivammathur/setup-php@v2
205205
with:
206206
php-version: ${{ matrix.php-versions }}
207207
extension: ${{ env.extensions }}
@@ -231,7 +231,7 @@ jobs:
231231
runs-on: ubuntu-latest
232232
needs: [setup, phpunit]
233233
steps:
234-
- uses: actions/checkout@master
234+
- uses: actions/checkout@v2
235235
- name: fetch tags
236236
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
237237
- name: BC Check

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ setup: install-phive
1313

1414
.PHONY: phpcs
1515
phpcs:
16-
docker run -it --rm -v${PWD}:/opt/project -w /opt/project phpdoc/phpcs-ga:v1.0.0 -s
16+
docker run -it --rm -v${PWD}:/opt/project -w /opt/project phpdoc/phpcs-ga:latest -s
1717

1818
.PHONY: phpcbf
1919
phpcbf:
20-
docker run -it --rm -v${PWD}:/opt/project -w /opt/project phpdoc/phpcs-ga:v1.0.0 phpcbf
20+
docker run -it --rm -v${PWD}:/opt/project -w /opt/project phpdoc/phpcs-ga:latest phpcbf
2121

2222
.PHONY: phpstan
2323
phpstan:
2424
docker run -it --rm -v${PWD}:/opt/project -w /opt/project phpdoc/phpstan-ga:latest analyse src --no-progress --configuration phpstan.neon
2525

2626
.PHONY: psalm
2727
psalm:
28-
docker run -it --rm -v${PWD}:/opt/project -w /opt/project mickaelandrieu/psalm-ga
28+
docker run -it --rm -v${PWD}:/opt/project -w /opt/project php:7.2 tools/psalm
2929

3030
.PHONY: test
3131
test:

phive.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
<phive xmlns="https://phar.io/phive">
33
<phar name="phpunit" version="^8.4.3" installed="8.4.3" location="./tools/phpunit" copy="true"/>
44
<phar name="phpstan" version="^0.9.1" installed="0.12.2" location="./tools/phpstan" copy="true"/>
5+
<phar name="psalm" version="^3.12.1" installed="3.12.1" location="./tools/psalm" copy="true"/>
56
</phive>

src/DocBlock/StandardTagFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ private function getArgumentsForParametersFromWiring(array $parameters, array $l
282282
* Retrieves a series of ReflectionParameter objects for the static 'create' method of the given
283283
* tag handler class name.
284284
*
285+
* @param class-string $handlerClassName
286+
*
285287
* @return ReflectionParameter[]
286288
*/
287289
private function fetchParametersForHandlerFactoryMethod(string $handlerClassName) : array

0 commit comments

Comments
 (0)