Skip to content

Commit

Permalink
update and 1 more rules (verify PSR4) + remove deprecated rule (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Feb 15, 2023
1 parent ff4f30e commit 08a1195
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 230 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test-impact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: Test Impact
# Run this workflow every time a new commit pushed to your repository
on:
push:
tags-ignore:
branches:
- '**'
tags-ignore:
- 'v*'
paths-ignore:
- '**/*.md'
pull_request:
Expand Down Expand Up @@ -32,7 +34,6 @@ jobs:
- kill_previous
steps:
- name: Extract branch name
if:
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
id: extract_branch
Expand All @@ -52,7 +53,7 @@ jobs:
repository: 'LycheeOrg/Lychee'

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

- name: Run PHPStan
run: vendor/bin/phpstan analyze
Expand Down Expand Up @@ -83,7 +84,7 @@ jobs:
repository: 'LycheeOrg/php-exif'

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

- name: Run PHPStan
run: vendor/bin/phpstan analyze
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"phpstan/phpstan-strict-rules": "^1.4",
"slam/phpstan-extensions": "^6.0",
"squizlabs/php_codesniffer": "^3.5",
"symplify/phpstan-rules": "^11.0",
"symplify/phpstan-rules": "main-dev",
"thecodingmachine/phpstan-safe-rule": "^1.2"
},
"scripts": {
Expand Down
Loading

0 comments on commit 08a1195

Please sign in to comment.