8000 Added @throws to doc blocks · kler/getopt-php@60489c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 60489c9

Browse files
committed
Added @throws to doc blocks
+ fix typo in ArgumentTest
1 parent 22e0be5 commit 60489c9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Ulrichsg/Getopt/Argument.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Argument
1111
* Creates a new argument.
1212
*
1313
* @param scalar|null $default Default value or NULL
14+
* @throws \InvalidArgumentException
1415
*/
1516
public function __construct($default = null)
1617
{
@@ -24,6 +25,7 @@ public function __construct($default = null)
2425
*
2526
* @param scalar $value
2627
* @return Argument this object (for chaining calls)
28+
* @throws \InvalidArgumentException
2729
*/
2830
public function setDefaultValue($value)
2931
{

test/Ulrichsg/Getopt/ArgumentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function testConstructor()
1414

1515
public function testSetDefaultValueNotScalar()
1616
{
17-
$this->setexpectedException('InvalidArgumentException');
17+
$this->setExpectedException('InvalidArgumentException');
1818
$argument = new Argument();
1919
$argument->setDefaultValue(array());
2020
}

0 commit comments

Comments
 (0)
0