Browse Source

[Locale] micro-optimization

Eriksen Costa 13 years ago
parent
commit
b1ea552448
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Symfony/Component/Locale/Stub/StubIntl.php

+ 1 - 1
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;
     }