Skip to content

Commit ecb5d47

Browse files
committed
fix handling of invocation with a single --mutator-class
1 parent 4c25430 commit ecb5d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/infection-config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212

1313
$decoded = json_decode(file_get_contents(__DIR__.'/../resources/infection.json5'));
14-
foreach($opts['mutator-class'] as $mutatorclass) {
14+
foreach((array)$opts['mutator-class'] as $mutatorclass) {
1515
$decoded->mutators->$mutatorclass = true;
1616
}
1717

0 commit comments

Comments
 (0)