Skip to content

Commit

Permalink
Fixed unwanted single quote during error parsing (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-acanfora committed Mar 20, 2024
1 parent 1ceb083 commit 102723a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator/DigitalDocumentValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function parseErrorMessage(string $message): ?array
$field = '';
if (stripos($message, "Element ") === 0) {
$message = substr($message, strlen("Element "));
$field = substr($message, 1, stripos($message, ':') - 1);
$field = substr($message, 1, stripos($message, ':') - 2);
$message = substr($message, stripos($message, ':') + 2);
}

Expand Down

0 comments on commit 102723a

Please sign in to comment.