Skip to content

Commit

Permalink
Temporary hack in PhpInternalSourceLocatorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Nov 23, 2024
1 parent b605db5 commit 8822a4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/SourceLocator/Type/PhpInternalSourceLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ public static function internalClassesProvider(): array
array_filter(
$allSymbols,
static function (string $symbol): bool {
// https://github.com/php/php-src/issues/16912
if ($symbol === 'dom\domexception') {

Check failure on line 100 in test/unit/SourceLocator/Type/PhpInternalSourceLocatorTest.php

View workflow job for this annotation

GitHub Actions / Static Analysis by PHPStan (locked, 8.3, ubuntu-latest)

Strict comparison using === between class-string and 'dom\\domexception' will always evaluate to false.
return false;
}

$reflection = new CoreReflectionClass($symbol);

return $reflection->isInternal();
Expand Down

0 comments on commit 8822a4b

Please sign in to comment.