소스 검색

[Locale] micro-optimization

Eriksen Costa 13 년 전
부모
커밋
b1ea552448
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }