Skip to content

Commit 437ac71

Browse files
staabmondrejmirtes
authored andcommitted
Fix build
1 parent 674d785 commit 437ac71

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Rules/Deprecations/FetchingDeprecatedConstRule.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use PHPStan\Reflection\ReflectionProvider;
99
use PHPStan\Rules\Rule;
1010
use function sprintf;
11-
use const PHP_VERSION_ID;
1211

1312
/**
1413
* @implements Rule<ConstFetch>
@@ -22,19 +21,10 @@ class FetchingDeprecatedConstRule implements Rule
2221
/** @var DeprecatedScopeHelper */
2322
private $deprecatedScopeHelper;
2423

25-
/** @var array<string,string> */
26-
private $deprecatedConstants = [];
27-
2824
public function __construct(ReflectionProvider $reflectionProvider, DeprecatedScopeHelper $deprecatedScopeHelper)
2925
{
3026
$this->reflectionProvider = $reflectionProvider;
3127
$this->deprecatedScopeHelper = $deprecatedScopeHelper;
32-
33-
// phpcs:ignore SlevomatCodingStandard.ControlStructures.EarlyExit.EarlyExitNotUsed
34-
if (PHP_VERSION_ID >= 70300) {
35-
$this->deprecatedConstants['FILTER_FLAG_SCHEME_REQUIRED'] = 'Use of constant %s is deprecated since PHP 7.3.';
36-
$this->deprecatedConstants['FILTER_FLAG_HOST_REQUIRED'] = 'Use of constant %s is deprecated since PHP 7.3.';
37-
}
3828
}
3929

4030
public function getNodeType(): string
@@ -61,13 +51,6 @@ public function processNode(Node $node, Scope $scope): array
6151
)];
6252
}
6353

64-
if (isset($this->deprecatedConstants[$constantReflection->getName()])) {
65-
return [sprintf(
66-
$this->deprecatedConstants[$constantReflection->getName()],
67-
$constantReflection->getName()
68-
)];
69-
}
70-
7154
return [];
7255
}
7356

0 commit comments

Comments
 (0)