initial
Dieser Commit ist enthalten in:
@ -20,14 +20,14 @@ use OxidEsales\Eshop\Core\Registry;
|
||||
|
||||
class d3TranslatableLazyAssertionException extends LazyAssertionException
|
||||
{
|
||||
public static function fromErrors(array $errors): self
|
||||
public static function fromErrors(array $errors): LazyAssertionException
|
||||
{
|
||||
$text = Registry::getLang()->translateString('D3_ASSERTIONS_FAILED');
|
||||
$message = \sprintf($text, \count($errors))."\n";
|
||||
$text = Registry::getLang()->translateString('D3_MAILCHECKER_ASSERTIONS_FAILED');
|
||||
$message = sprintf( $text, count( $errors ) ) . "\n";
|
||||
|
||||
$i = 1;
|
||||
foreach ($errors as $error) {
|
||||
$message .= \sprintf("%d) %s: %s\n", $i++, $error->getPropertyPath(), $error->getMessage());
|
||||
$message .= sprintf( "%d) %s: %s\n", $i ++, $error->getPropertyPath(), $error->getMessage() );
|
||||
}
|
||||
|
||||
return new static($message, $errors);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren