Skip to content

Commit

Permalink
[Locale] micro-optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
eriksencosta committed Apr 14, 2012
1 parent 663d218 commit b1ea552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Locale/Stub/StubIntl.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit b1ea552

Please sign in to comment.