mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 16:36:07 +03:00
0eb15969b9
* Made most classes final * bugfix
26 lines
574 B
PHP
26 lines
574 B
PHP
<?php
|
|
|
|
/*
|
|
* 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>
|
|
*/
|
|
final class Assert extends \Webmozart\Assert\Assert
|
|
{
|
|
protected static function reportInvalidArgument($message)
|
|
{
|
|
throw new InvalidArgumentException($message);
|
|
}
|
|
}
|