Remove WP\Functions::__ and other translate functions
Under the new sniffer rules, those functions produce errors and, when those methods are used, the sniffer can not properly be applied. [MAILPOET-4524]
This commit is contained in:
@@ -34,7 +34,7 @@ class ErrorHandlerTest extends \MailPoetUnitTest {
|
||||
}
|
||||
|
||||
private function runErrorHandlerTest(Exception $exception, int $expectedCode) {
|
||||
$errorHandler = new ErrorHandler(new WPFunctions());
|
||||
$errorHandler = new ErrorHandler();
|
||||
$response = $errorHandler->convertToResponse($exception->withErrors([
|
||||
'key' => 'value',
|
||||
]));
|
||||
|
Reference in New Issue
Block a user