Skip to content

Commit

Permalink
Merge pull request #1385 from kukulich/dead
Browse files Browse the repository at this point in the history
Removed dead code after JetBrains/phpstorm-stubs upgrade
  • Loading branch information
kukulich committed Dec 16, 2023
2 parents 42c4172 + ede1ac8 commit a1fcefb
Showing 1 changed file with 0 additions and 17 deletions.
Expand Up @@ -108,12 +108,6 @@ public static function internalClassesProvider(): array
array_filter(
$classNames,
static function (string $className): bool {
// Missing in JetBrains/phpstorm-stubs
// @phpstan-ignore-next-line
if ($className === 'Override') {
return false;
}

$reflection = new CoreReflectionClass($className);

if (! $reflection->isInternal()) {
Expand Down Expand Up @@ -271,17 +265,6 @@ public static function internalFunctionsProvider(): array
array_filter(
$functionNames,
static function (string $functionName): bool {
if (
in_array($functionName, [
// Missing in JetBrains/phpstorm-stubs
'str_decrement',
'str_increment',
'stream_context_set_options',
], true)
) {
return false;
}

$reflection = new CoreReflectionFunction($functionName);

// Check only always enabled extensions
Expand Down

0 comments on commit a1fcefb

Please sign in to comment.