Skip to content

Commit

Permalink
Add PHP-Parser 5 support, temporary remove infection due to circular …
Browse files Browse the repository at this point in the history
…reference (#21)
  • Loading branch information
sidz committed Jan 8, 2024
1 parent 84e0501 commit f3832cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ jobs:
shell: bash
run: make tests

- name: Run Infection for touched lines
shell: bash
if: github.event_name == 'pull_request'
run: |
git fetch origin $GITHUB_BASE_REF
vendor/bin/infection --threads=max --only-covered --show-mutations --min-covered-msi=100 --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --ignore-msi-with-no-mutations
# - name: Run Infection for touched lines
# shell: bash
# if: github.event_name == 'pull_request'
# run: |
# git fetch origin $GITHUB_BASE_REF
# vendor/bin/infection --threads=max --only-covered --show-mutations --min-covered-msi=100 --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --ignore-msi-with-no-mutations

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"keywords": [
"phpstan",
"phpstan-rules",
"phpstan-extreme-rules"
"phpstan-extreme-rules",
"phpstan-magic-numbers"
],
"authors": [
{
Expand All @@ -21,12 +22,11 @@
},
"require": {
"php": "^8.1, <8.4",
"nikic/php-parser": "^4.14",
"nikic/php-parser": "^4.14 || ^5.0",
"phpstan/phpstan": "^1.8"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.4",
"infection/infection": "^0.27.0",
"phpunit/phpunit": "^10.1"
},
"autoload": {
Expand Down

0 comments on commit f3832cd

Please sign in to comment.