Skip to content

Commit 08a1195

Browse files
authored
update and 1 more rules (verify PSR4) + remove deprecated rule (#16)
1 parent ff4f30e commit 08a1195

File tree

5 files changed

+235
-230
lines changed

5 files changed

+235
-230
lines changed

.github/workflows/test-impact.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ name: Test Impact
33
# Run this workflow every time a new commit pushed to your repository
44
on:
55
push:
6-
tags-ignore:
6+
branches:
77
- '**'
8+
tags-ignore:
9+
- 'v*'
810
paths-ignore:
911
- '**/*.md'
1012
pull_request:
@@ -32,7 +34,6 @@ jobs:
3234
- kill_previous
3335
steps:
3436
- name: Extract branch name
35-
if:
3637
shell: bash
3738
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
3839
id: extract_branch
@@ -52,7 +53,7 @@ jobs:
5253
repository: 'LycheeOrg/Lychee'
5354

5455
- name: Fix composer.json
55-
run: composer require --dev "lychee-org/phpstan-lychee":"dev-${{ steps.extract_branch.outputs.branch }}"
56+
run: composer require --dev -W "lychee-org/phpstan-lychee":"dev-${{ steps.extract_branch.outputs.branch }}"
5657

5758
- name: Run PHPStan
5859
run: vendor/bin/phpstan analyze
@@ -83,7 +84,7 @@ jobs:
8384
repository: 'LycheeOrg/php-exif'
8485

8586
- name: Fix composer.json
86-
run: composer require --dev "lychee-org/phpstan-lychee":"dev-${{ steps.extract_branch.outputs.branch }}"
87+
run: composer require --dev -W "lychee-org/phpstan-lychee":"dev-${{ steps.extract_branch.outputs.branch }}"
8788

8889
- name: Run PHPStan
8990
run: vendor/bin/phpstan analyze

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"phpstan/phpstan-strict-rules": "^1.4",
1212
"slam/phpstan-extensions": "^6.0",
1313
"squizlabs/php_codesniffer": "^3.5",
14-
"symplify/phpstan-rules": "^11.0",
14+
"symplify/phpstan-rules": "main-dev",
1515
"thecodingmachine/phpstan-safe-rule": "^1.2"
1616
},
1717
"scripts": {

0 commit comments

Comments
 (0)