From 682d7919ad871b3fccb5b19d8fee7675715e84d5 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Fri, 8 Dec 2017 01:08:12 +0000 Subject: [PATCH] Update error messages and provide @author annotation http://docs.phpdoc.org/references/phpdoc/tags/author.html --- src/Assert.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Assert.php b/src/Assert.php index 083bf88..3ce3a53 100644 --- a/src/Assert.php +++ b/src/Assert.php @@ -21,6 +21,7 @@ use Mailgun\Exception\InvalidArgumentException; * We need to override Webmozart\Assert because we want to throw our own Exception. * * @author Tobias Nyholm + * @author David Garcia */ final class Assert extends \Webmozart\Assert\Assert { @@ -41,17 +42,17 @@ final class Assert extends \Webmozart\Assert\Assert if (!$validator->isValid($address, new RFCValidation())) { static::reportInvalidArgument(sprintf( - 'Email address `%s` has thrown an error when processing a RFC Validation', + 'Email address `%s` has thrown an error when processing a RFC Validation.', $address )); } elseif (!$validator->isValid($address, new DNSCheckValidation())) { static::reportInvalidArgument(sprintf( - 'Email address `%s` has thrown an error when processing a DNS Check Validation', + 'Email address `%s` has thrown an error when processing a DNS Check Validation.', $address )); } elseif (!$validator->isValid($address, new SpoofCheckValidation())) { static::reportInvalidArgument(sprintf( - 'Email address `%s` has thrown an error when processing a Spoof Check Validation', + 'Email address `%s` has thrown an error when processing a Spoof Check Validation.', $address )); }