Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/laminas/laminas-i18n/src/Exception/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/laminas/laminas-i18n/src/Exception/InvalidArgumentException.php
<?php

namespace Laminas\I18n\Exception;

use function sprintf;

/** @final */
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
{
    /** @psalm-pure */
    public static function withInvalidCountryCode(string $received): self
    {
        return new self(sprintf(
            'Country codes should be 2 letter ISO 3166 strings, received "%s"',
            $received
        ));
    }

    /** @psalm-pure */
    public static function withUnknownCountryCode(string $code): self
    {
        return new self(sprintf(
            'The country code "%s" does not correspond to a known country',
            $code
        ));
    }

    /** @psalm-pure */
    public static function withUnrecognizableLocaleString(string $locale): self
    {
        return new self(sprintf(
            'The string "%s" could not be parsed as a valid locale',
            $locale
        ));
    }

    /** @psalm-pure */
    public static function withUndetectableCountryCode(string $localeOrCode): self
    {
        return new self(sprintf(
            'The string "%s" could not be understood as either a locale or an ISO 3166 country code',
            $localeOrCode
        ));
    }
}

Spamworldpro Mini