diff --git a/src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php b/src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php index a448a588e2..573f1a35ca 100644 --- a/src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php +++ b/src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php @@ -416,11 +416,13 @@ class StubIntlDateFormatter * * @see http://www.php.net/manual/en/intldateformatter.setlenient.php * - * @throws MethodNotImplementedException + * @throws MethodNotImplementedException When $lenient is true */ public function setLenient($lenient) { - throw new MethodNotImplementedException(__METHOD__); + if ($lenient) { + throw new MethodNotImplementedException(__METHOD__); + } } /**