[Locale] micro-optimization

This commit is contained in:
Eriksen Costa 2012-04-14 16:55:51 -03:00
parent 663d218e97
commit b1ea552448

View File

@ -73,7 +73,7 @@ abstract class StubIntl
*/
static public function isFailure($errorCode)
{
return array_key_exists($errorCode, self::$errorCodes)
return isset(self::$errorCodes[$errorCode])
&& $errorCode > self::U_ZERO_ERROR;
}