8000 MethodNotImplementedException -> MethodArgumentValueNotImplementedExc… · beryllium/symfony@d55f7ed · GitHub
[go: up one dir, main page]

Skip to content

Commit d55f7ed

Browse files
committed
MethodNotImplementedException -> MethodArgumentValueNotImplementedException
1 parent cea6489 commit d55f7ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,12 @@ public function setCalendar($calendar)
416416
*
417417
* @see http://www.php.net/manual/en/intldateformatter.setlenient.php
418418
*
419-
* @throws MethodNotImplementedException When $lenient is true
419+
* @throws MethodArgumentValueNotImplementedException When $lenient is true
420420
*/
421421
public function setLenient($lenient)
422422
{
423423
if ($lenient) {
424-
throw new MethodNotImplementedException(__METHOD__);
424+
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'lenient', $lenient, 'Only the strict parser is supported');
425425
}
426426
}
427427

src/Symfony/Component/Locale/Tests/Stub/StubIntlDateFormatterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ public function testSetCalendar()
906906
}
907907

908908
/**
909-
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
909+
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
910910
*/
911911
public function testSetLenient()
912912
{

0 commit comments

Comments
 (0)
0