Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5c57bbb

Browse filesBrowse files
committed
merged branch pgodel/2.0 (PR #5914)
This PR was merged into the 2.0 branch. Commits ------- 9aec4c8 Show correct class name InputArgument in error message Discussion ---------- [Console] Show correct class name InputArgument in error message Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes License of the code: MIT
2 parents e1c031f + 9aec4c8 commit 5c57bbb
Copy full SHA for 5c57bbb

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎src/Symfony/Component/Console/Input/InputArgument.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Input/InputArgument.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function isArray()
9696
public function setDefault($default = null)
9797
{
9898
if (self::REQUIRED === $this->mode && null !== $default) {
99-
throw new \LogicException('Cannot set a default value except for Parameter::OPTIONAL mode.');
99+
throw new \LogicException('Cannot set a default value except for InputArgument::OPTIONAL mode.');
100100
}
101101

102102
if ($this->isArray()) {

‎tests/Symfony/Tests/Component/Console/Input/InputArgumentTest.php

Copy file name to clipboardExpand all lines: tests/Symfony/Tests/Component/Console/Input/InputArgumentTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function testSetDefault()
8282
$this->fail('->setDefault() throws an Exception if you give a default value for a required argument');
8383
} catch (\Exception $e) {
8484
$this->assertInstanceOf('\Exception', $e, '->parse() throws an \InvalidArgumentException exception if an invalid option is passed');
85-
$this->assertEquals('Cannot set a default value except for Parameter::OPTIONAL mode.', $e->getMessage());
85+
$this->assertEquals('Cannot set a default value except for InputArgument::OPTIONAL mode.', $e->getMessage());
8686
}
8787

8888
try {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.