StubIntl deprecated
class StubIntl extends IntlGlobals
deprecated
Alias of {@link \Symfony\Component\Intl\Globals\IntlGlobals}.
Constants
U_ZERO_ERROR |
Indicates that no error occurred. |
U_ILLEGAL_ARGUMENT_ERROR |
Indicates that an invalid argument was passed. |
U_PARSE_ERROR |
Indicates that the parse() operation failed. |
Methods
static bool
isFailure(int $errorCode)
Returns whether the error code indicates a failure.
from IntlGlobals
static string
getErrorName(int $code)
Returns the symbolic name for a given error code.
from IntlGlobals
Details
in IntlGlobals at line line 76
static bool
isFailure(int $errorCode)
Returns whether the error code indicates a failure.
in IntlGlobals at line line 89
static int
getErrorCode()
Returns the error code of the last operation.
Returns IntlGlobals::UZEROERROR if no error occurred.
in IntlGlobals at line line 101
static string
getErrorMessage()
Returns the error message of the last operation.
Returns "UZEROERROR" if no error occurred.
in IntlGlobals at line line 113
static string
getErrorName(int $code)
Returns the symbolic name for a given error code.
in IntlGlobals at line line 130
static
setError(int $code, string $message = '')
Sets the current error.