Skip to content

Commit

Permalink
getErrorsString: fix detail type
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemeey authored Jul 30, 2024
1 parent 6b9ab31 commit 0271dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/V2/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function getMessages(){
function getErrorsString(){
$errorsString = [];
foreach($this->errors as $error){
$errorsString[] = $error->string.($error->code?" ($error->code)":'').($error->detail?": $error->detail":'');
$errorsString[] = $error->string.($error->code?" ($error->code)":'').($error->detail?': '.json_encode($error->detail, JSON_UNESCAPED_UNICODE):'');
}
$errorsString = implode("<br>", $errorsString);

Expand Down

0 comments on commit 0271dc3

Please sign in to comment.