From 3232e588200f4ce945df005cf6cca051713e4056 Mon Sep 17 00:00:00 2001 From: xjm <xjm@65776.no-reply.drupal.org> Date: Wed, 8 May 2024 13:14:55 -0700 Subject: [PATCH] Issue #3445896 by mstrelan, mondrake: PHPUnit\Runner\ErrorHandler::__construct is private since PHPUnit 11.1 --- core/tests/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tests/bootstrap.php b/core/tests/bootstrap.php index 56f7cd68a247..0d663410407d 100644 --- a/core/tests/bootstrap.php +++ b/core/tests/bootstrap.php @@ -171,7 +171,7 @@ class_alias('\Drupal\Tests\DocumentElement', '\Behat\Mink\Element\DocumentElemen // DebugClassLoader, that occur before tests' setUp() methods are called. // We pass an instance of the PHPUnit error handler to redirect any error not // managed by our layer back to PHPUnit. - set_error_handler(new BootstrapErrorHandler(new PhpUnitErrorHandler())); + set_error_handler(new BootstrapErrorHandler(PhpUnitErrorHandler::instance())); // Enable the DebugClassLoader to get deprecations for methods' signature // changes. -- GitLab