1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Suppress test issues with Symony functions used with ::class constant (#5335)

These appeared in symfony/symfony#40203
This commit is contained in:
Bruce Weirdan 2021-03-06 22:29:15 +02:00 committed by GitHub
parent 96e0743892
commit beca4a127f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,13 @@ spl_autoload_register(function (string $className) {
'PHPUnit\Framework\DOMDocument', 'PHPUnit\Framework\DOMDocument',
'PHPUnit\Framework\DOMElement', 'PHPUnit\Framework\DOMElement',
'Stringable', 'Stringable',
// https://github.com/symfony/symfony/pull/40203
// these are actually functions, referenced as `if (!function_exists(u::class))`
'Symfony\Component\String\u',
'Symfony\Component\String\b',
'Symfony\Component\String\s',
'Symfony\Component\Translation\t',
]; ];
if (in_array($className, $knownBadClasses)) { if (in_array($className, $knownBadClasses)) {