|
@@ -416,11 +416,13 @@ class StubIntlDateFormatter
|
|
*
|
|
*
|
|
* @see http://www.php.net/manual/en/intldateformatter.setlenient.php
|
|
* @see http://www.php.net/manual/en/intldateformatter.setlenient.php
|
|
*
|
|
*
|
|
- * @throws MethodNotImplementedException
|
|
|
|
|
|
+ * @throws MethodArgumentValueNotImplementedException When $lenient is true
|
|
*/
|
|
*/
|
|
public function setLenient($lenient)
|
|
public function setLenient($lenient)
|
|
{
|
|
{
|
|
- throw new MethodNotImplementedException(__METHOD__);
|
|
|
|
|
|
+ if ($lenient) {
|
|
|
|
+ throw new MethodArgumentValueNotImplementedException(__METHOD__, 'lenient', $lenient, 'Only the strict parser is supported');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|