diff --git a/tests/fixtures/SuicidalAutoloader/autoloader.php b/tests/fixtures/SuicidalAutoloader/autoloader.php index a4bacbea4..af35e9d8f 100644 --- a/tests/fixtures/SuicidalAutoloader/autoloader.php +++ b/tests/fixtures/SuicidalAutoloader/autoloader.php @@ -16,6 +16,13 @@ spl_autoload_register(function (string $className) { 'PHPUnit\Framework\DOMDocument', 'PHPUnit\Framework\DOMElement', '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)) {