2016-10-24 20:01:32 +03:00
|
|
|
<?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.
|
|
|
|
*/
|
|
|
|
|
2016-10-24 20:01:32 +03:00
|
|
|
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-10-24 20:01:32 +03:00
|
|
|
{
|
2016-11-24 01:01:26 +03:00
|
|
|
throw new InvalidArgumentException($message);
|
2016-10-24 20:01:32 +03:00
|
|
|
}
|
|
|
|
}
|