[Locale] micro-optimization
This commit is contained in:
parent
663d218e97
commit
b1ea552448
@ -73,7 +73,7 @@ abstract class StubIntl
|
|||||||
*/
|
*/
|
||||||
static public function isFailure($errorCode)
|
static public function isFailure($errorCode)
|
||||||
{
|
{
|
||||||
return array_key_exists($errorCode, self::$errorCodes)
|
return isset(self::$errorCodes[$errorCode])
|
||||||
&& $errorCode > self::U_ZERO_ERROR;
|
&& $errorCode > self::U_ZERO_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user