Skip to content

Commit 3d81857

Browse files
committed
Removed dead code
1 parent 701ab7a commit 3d81857

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

SlevomatCodingStandard/Sniffs/TestCase.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use function strlen;
2222
use function strpos;
2323
use function substr;
24-
use function version_compare;
2524
use const PHP_EOL;
2625

2726
/**
@@ -45,14 +44,11 @@ protected static function checkFile(string $filePath, array $sniffProperties = [
4544
$codeSniffer->init();
4645

4746
if (count($sniffProperties) > 0) {
48-
/** @phpstan-ignore-next-line */
49-
if (version_compare(Config::VERSION, '3.8.0', '>=')) {
50-
foreach ($sniffProperties as $name => $value) {
51-
$sniffProperties[$name] = [
52-
'value' => $value,
53-
'scope' => 'sniff',
54-
];
55-
}
47+
foreach ($sniffProperties as $name => $value) {
48+
$sniffProperties[$name] = [
49+
'value' => $value,
50+
'scope' => 'sniff',
51+
];
5652
}
5753

5854
$codeSniffer->ruleset->ruleset[self::getSniffName()]['properties'] = $sniffProperties;

0 commit comments

Comments
 (0)