Skip to content

Commit a1fcefb

Browse files
authored
Merge pull request #1385 from kukulich/dead
Removed dead code after JetBrains/phpstorm-stubs upgrade
2 parents 42c4172 + ede1ac8 commit a1fcefb

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/unit/SourceLocator/SourceStubber/PhpStormStubsSourceStubberTest.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ public static function internalClassesProvider(): array
108108
array_filter(
109109
$classNames,
110110
static function (string $className): bool {
111-
// Missing in JetBrains/phpstorm-stubs
112-
// @phpstan-ignore-next-line
113-
if ($className === 'Override') {
114-
return false;
115-
}
116-
117111
$reflection = new CoreReflectionClass($className);
118112

119113
if (! $reflection->isInternal()) {
@@ -271,17 +265,6 @@ public static function internalFunctionsProvider(): array
271265
array_filter(
272266
$functionNames,
273267
static function (string $functionName): bool {
274-
if (
275-
in_array($functionName, [
276-
// Missing in JetBrains/phpstorm-stubs
277-
'str_decrement',
278-
'str_increment',
279-
'stream_context_set_options',
280-
], true)
281-
) {
282-
return false;
283-
}
284-
285268
$reflection = new CoreReflectionFunction($functionName);
286269

287270
// Check only always enabled extensions

0 commit comments

Comments
 (0)