mailgun-php/src/Mailgun/Assert.php

26 lines
569 B
PHP
Raw Normal View History

<?php
2016-11-24 01:01:26 +03:00
/*
* Copyright (C) 2013-2016 Mailgun
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Mailgun;
use Mailgun\Exception\InvalidArgumentException;
/**
* We need to override Webmozart\Assert because we want to throw our own Exception.
*
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/
class Assert extends \Webmozart\Assert\Assert
{
2016-11-24 01:01:26 +03:00
protected static function reportInvalidArgument($message)
{
2016-11-24 01:01:26 +03:00
throw new InvalidArgumentException($message);
}
}