mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
Keeping the list of ISO 3166-2 up-to-date requires some maintenance. At the same time, PHP ISO Codes maintains an up-to-date database with even more ISO codes we could use in this library. This change doesn't fully use all resources of PHP ISO Codes, but it already removes some unnecessary code from the repository. We've already used this library, but it was heavy because it included all the localizations in it. Now, the package is much smaller (5.0M). Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
20 lines
441 B
PHP
20 lines
441 B
PHP
<?php
|
|
|
|
/*
|
|
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
use function sprintf;
|
|
|
|
final class InvalidRuleConstructorException extends ComponentException implements Exception
|
|
{
|
|
public function __construct(string $message, mixed ...$arguments)
|
|
{
|
|
parent::__construct(sprintf($message, ...$arguments));
|
|
}
|
|
}
|