Skip to content

Commit 9850de4

Browse files
committed
Complain if nothing (or only commas) specified
1 parent 4ed5733 commit 9850de4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Config.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,6 +1656,10 @@ private function parseSniffCodes($input, $argument)
16561656

16571657
$possibleSniffs = array_filter(explode(',', $input));
16581658

1659+
if ($possibleSniffs === []) {
1660+
$errors[] = 'No codes specified / empty argument';
1661+
}
1662+
16591663
foreach ($possibleSniffs as $sniff) {
16601664
$sniff = trim($sniff);
16611665

0 commit comments

Comments
 (0)