Skip to content

Commit

Permalink
[10.x] Make test error messages more multi-byte readable (#49160)
Browse files Browse the repository at this point in the history
  • Loading branch information
nshiro committed Nov 28, 2023
1 parent e533631 commit 8ae12c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Testing/TestResponse.php
Expand Up @@ -1663,7 +1663,7 @@ protected function appendExceptionToException($exceptionToAppend, $exception)
protected function appendErrorsToException($errors, $exception, $json = false)
{
$errors = $json
? json_encode($errors, JSON_PRETTY_PRINT)
? json_encode($errors, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)
: implode(PHP_EOL, Arr::flatten($errors));
// JSON error messages may already contain the errors, so we shouldn't duplicate them...
Expand Down

0 comments on commit 8ae12c9

Please sign in to comment.