DateTime throws an invalid arg exception to prevent Twig crashing

Remove rounded search style
This commit is contained in:
Samuel Georges 2016-04-23 05:29:42 +10:00
parent 0504da41f2
commit 7cb9087ffb
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,6 @@
data-track-input
data-load-indicator
data-load-indicator-opaque
class="form-control searchable <?= $cssClasses ?>"
class="form-control <?= $cssClasses ?>"
autocomplete="off" />
</div>

View File

@ -4,6 +4,7 @@ use Lang;
use Carbon\Carbon;
use Exception;
use DateTime as PhpDateTime;
use InvalidArgumentException;
class DateTime
{
@ -72,7 +73,7 @@ class DateTime
}
if (!$value instanceof Carbon && $throwException) {
throw new Exception('Invalid date value supplied to DateTime helper.');
throw new InvalidArgumentException('Invalid date value supplied to DateTime helper.');
}
return $value;