We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792cf66 commit 4ed5733Copy full SHA for 4ed5733
src/Config.php
@@ -1654,16 +1654,11 @@ private function parseSniffCodes($input, $argument)
1654
$errors = [];
1655
$sniffs = [];
1656
1657
- $possibleSniffs = explode(',', $input);
+ $possibleSniffs = array_filter(explode(',', $input));
1658
1659
foreach ($possibleSniffs as $sniff) {
1660
$sniff = trim($sniff);
1661
1662
- if ($sniff === '') {
1663
- // Empty values can be safely ignored.
1664
- continue;
1665
- }
1666
-
1667
if (preg_match('{[^A-Za-z0-9.]}', $sniff) === 1) {
1668
$errors[] = 'Unsupported character detected: '.$sniff;
1669
continue;
0 commit comments