Skip to content

Commit 47766c4

Browse files
javiereguiluzfabpot
authored andcommitted
[Console] Improved the explanation of the hasOption() method
1 parent 2c01a84 commit 47766c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Input/InputDefinition.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ public function getOption($name)
282282
/**
283283
* Returns true if an InputOption object exists by name.
284284
*
285+
* This method can't be used to check if the user included the option when
286+
* executing the command (use getOption() instead).
287+
*
285288
* @param string $name The InputOption name
286289
*
287290
* @return bool true if the InputOption object exists, false otherwise

0 commit comments

Comments
 (0)