Skip to content

Commit 0e103f3

Browse files
ntzmtaylorotwell
authored andcommitted
Command::option and Command::argument can return null (#24946)
1 parent 4aabbd4 commit 0e103f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Console/Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function hasArgument($name)
246246
* Get the value of a command argument.
247247
*
248248
* @param string|null $key
249-
* @return string|array
249+
* @return string|array|null
250250
*/
251251
public function argument($key = null)
252252
{
@@ -282,7 +282,7 @@ public function hasOption($name)
282282
* Get the value of a command option.
283283
*
284284
* @param string|null $key
285-
* @return string|array
285+
* @return string|array|null
286286
*/
287287
public function option($key = null)
288288
{

0 commit comments

Comments
 (0)