10000 Accept calling setLenient(false) · beryllium/symfony@cea6489 · GitHub
[go: up one dir, main page]

Skip to content

Commit cea6489

Browse files
committed
Accept calling setLenient(false)
1 parent 49e213c commit cea6489

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,13 @@ public function setCalendar($calendar)
416416
*
417417
* @see http://www.php.net/manual/en/intldateformatter.setlenient.php
418418
*
419-
* @throws MethodNotImplementedException
419+
* @throws MethodNotImplementedException When $lenient is true
420420
*/
421421
public function setLenient($lenient)
422422
{
423-
throw new MethodNotImplementedException(__METHOD__);
423+
if ($lenient) {
424+
throw new MethodNotImplementedException(__METHOD__);
425+
}
424426
}
425427

426428
/**

0 commit comments

Comments
 (0)
0