Clean up configuration of error handler #3503
Labels
type/refactoring
A refactoring that should be applied to make the code easier to understand and maintain
Milestone
PHPUnit registers an error handler that converts
E_WARNING
etc. to exceptions. This error handler can be configured through configuration directives such asconvertWarningsToExceptions
.Internally, when
convertWarningsToExceptions="false"
is configured inphpunit.xml
, for instance,PHPUnit\Framework\Error\Warning::$enabled
is set tofalse
. This is a legacy from the earliest days of PHPUnit and should be cleaned up.The text was updated successfully, but these errors were encountered: