File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ class Argument
11
11
* Creates a new argument.
12
12
*
13
13
* @param scalar|null $default Default value or NULL
14
+ * @throws \InvalidArgumentException
14
15
*/
15
16
public function __construct ($ default = null )
16
17
{
@@ -24,6 +25,7 @@ public function __construct($default = null)
24
25
*
25
26
* @param scalar $value
26
27
* @return Argument this object (for chaining calls)
28
+ * @throws \InvalidArgumentException
27
29
*/
28
30
public function setDefaultValue ($ value )
29
31
{
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function testConstructor()
14
14
15
15
public function testSetDefaultValueNotScalar ()
16
16
{
17
- $ this ->setexpectedException ('InvalidArgumentException ' );
17
+ $ this ->setExpectedException ('InvalidArgumentException ' );
18
18
$ argument = new Argument ();
19
19
$ argument ->setDefaultValue (array ());
20
20
}
You can’t perform that action at this time.
0 commit comments