Skip to content

Commit 8ac286d

Browse files
authored
Fix Infection timeouts (#901)
1 parent 0824449 commit 8ac286d

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.dev-tools/infection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"../src"
66
]
77
},
8-
"timeout": 5,
8+
"timeout": 10,
99
"logs": {
1010
"text": "php://stdout",
1111
"github": true,

.dev-tools/src/InfectionConfigBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function build(): array
4242
$config = [
4343
'$schema' => './vendor/infection/infection/resources/schema.json',
4444
'source' => ['directories' => ['../src']],
45-
'timeout' => 5,
45+
'timeout' => 10,
4646
'logs' => [
4747
'text' => 'php://stdout',
4848
'github' => true,

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,12 @@ jobs:
115115
- run: ./vendor/bin/phpunit ${{ matrix.phpunit-flags }}
116116

117117
- if: ${{ matrix.calculate-coverage }}
118-
run: ./vendor/bin/php-coveralls --verbose
119118
env:
120119
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121120
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
121+
run: ./vendor/bin/php-coveralls --verbose
122122

123123
- if: ${{ matrix.calculate-coverage }}
124+
env:
125+
FAST_LINT_TEST_CASES: 1
124126
run: composer infection

src/Fixer/NoUselessParenthesisFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private function isBlockToRemove(Tokens $tokens, int $startIndex, int $endIndex)
9191
return true;
9292
}
9393

94-
if ($tokens[$nextEndIndex]->equalsAny(['(', '{', [\T_DOUBLE_ARROW], [CT::T_BRACE_CLASS_INSTANTIATION_OPEN], [CT::T_USE_LAMBDA], [CT::T_TYPE_COLON]])) {
94+
if ($tokens[$nextEndIndex]->equalsAny(['(', '{', [\T_DOUBLE_ARROW], [CT::T_USE_LAMBDA], [CT::T_TYPE_COLON]])) {
9595
return false;
9696
}
9797

0 commit comments

Comments
 (0)