Skip to content

Commit f3832cd

Browse files
authored
Add PHP-Parser 5 support, temporary remove infection due to circular reference (#21)
1 parent 84e0501 commit f3832cd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757
shell: bash
5858
run: make tests
5959

60-
- name: Run Infection for touched lines
61-
shell: bash
62-
if: github.event_name == 'pull_request'
63-
run: |
64-
git fetch origin $GITHUB_BASE_REF
65-
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
60+
# - name: Run Infection for touched lines
61+
# shell: bash
62+
# if: github.event_name == 'pull_request'
63+
# run: |
64+
# git fetch origin $GITHUB_BASE_REF
65+
# 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
6666

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"keywords": [
77
"phpstan",
88
"phpstan-rules",
9-
"phpstan-extreme-rules"
9+
"phpstan-extreme-rules",
10+
"phpstan-magic-numbers"
1011
],
1112
"authors": [
1213
{
@@ -21,12 +22,11 @@
2122
},
2223
"require": {
2324
"php": "^8.1, <8.4",
24-
"nikic/php-parser": "^4.14",
25+
"nikic/php-parser": "^4.14 || ^5.0",
2526
"phpstan/phpstan": "^1.8"
2627
},
2728
"require-dev": {
2829
"friendsofphp/php-cs-fixer": "^3.4",
29-
"infection/infection": "^0.27.0",
3030
"phpunit/phpunit": "^10.1"
3131
},
3232
"autoload": {

0 commit comments

Comments
 (0)