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:
parent
96e0743892
commit
beca4a127f
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user