Verified Commit 3927c703 authored by Jess's avatar Jess
Browse files

Issue #3445896 by mstrelan, mondrake: PHPUnit\Runner\ErrorHandler::__construct...

Issue #3445896 by mstrelan, mondrake: PHPUnit\Runner\ErrorHandler::__construct is private since PHPUnit 11.1

(cherry picked from commit 3232e588)
parent b00ae168
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.