Skip to content

Commit 81e521d

Browse files
authored
chore: Fix infection (#217)
1 parent 0e61f73 commit 81e521d

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ phpunit_coverage_html: $(PHPUNIT_BIN) vendor
116116
.PHONY: infection
117117
infection: ## Runs Infection
118118
infection: $(INFECTION_BIN) vendor
119-
$(INFECTION_WITH_INITIAL_TESTS)
119+
$(INFECTION_WITH_INITIAL_TESTS) --initial-tests-php-options='-d zend_extension=xdebug.so'
120120

121121
.PHONY: _infection
122122
_infection: $(INFECTION_BIN) $(COVERAGE_XML) $(COVERAGE_JUNIT) vendor

infection.json5

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,27 @@
3636
},
3737
"CloneRemoval": false,
3838
"DecrementInteger": {
39+
ignore: [
40+
// The segment size or batch size are not critical
41+
"Webmozarts\\Console\\Parallelization\\ParallelExecutorFactory::create"
42+
],
3943
"ignoreSourceCodeByRegex": [
4044
".*\\$numberOfStreamedItems = .*",
4145
".*\\$numberOfItems \\?\\? 0.*",
4246
".*return min\\(\\$exitCode, 255\\);.*"
4347
]
4448
},
49+
"FalseValue": {
50+
"ignore": [
51+
// The input value cannot be null hence the boolean changed has no influence.
52+
"Webmozarts\\Console\\Parallelization\\Input\\ParallelizationInput::coerceNumberOfProcesses"
53+
]
54+
},
4555
"IncrementInteger": {
56+
ignore: [
57+
// The segment size or batch size are not critical
58+
"Webmozarts\\Console\\Parallelization\\ParallelExecutorFactory::create"
59+
],
4660
"ignoreSourceCodeByRegex": [
4761
".*\\$numberOfItems \\?\\? 0.*",
4862
".*return min\\(\\$exitCode, 255\\);.*"

0 commit comments

Comments
 (0)