From beca4a127f6910d5f2713e3bdcd7eae7dbc1b176 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sat, 6 Mar 2021 22:29:15 +0200 Subject: [PATCH] Suppress test issues with Symony functions used with `::class` constant (#5335) These appeared in symfony/symfony#40203 --- tests/fixtures/SuicidalAutoloader/autoloader.php | 7 +++++++ 1 file changed, 7 insertions(+) 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)) {