From b1ea5524488db93bfecbcf08910908813e0ae3c7 Mon Sep 17 00:00:00 2001 From: Eriksen Costa Date: Sat, 14 Apr 2012 16:55:51 -0300 Subject: [PATCH] [Locale] micro-optimization --- src/Symfony/Component/Locale/Stub/StubIntl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Locale/Stub/StubIntl.php b/src/Symfony/Component/Locale/Stub/StubIntl.php index a036e15056..1dfc731884 100644 --- a/src/Symfony/Component/Locale/Stub/StubIntl.php +++ b/src/Symfony/Component/Locale/Stub/StubIntl.php @@ -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; }