Skip to content

Commit

Permalink
docs: clarify use of hasOption()
Browse files Browse the repository at this point in the history
`hasOption()` does not check whether the command has been _called_ with the given option, but rather whether the command even _accepts_ the option.
  • Loading branch information
jezmck authored Jan 30, 2025
1 parent 38be038 commit 732342c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Concerns/InteractsWithIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function arguments()
}

/**
* Determine if the given option is present.
* Determine whether the option exists for the command.
*
* @param string $name
* @return bool
Expand Down

0 comments on commit 732342c

Please sign in to comment.