[DomCrawler] Change bad wording in ChoiceFormField::untick
This commit is contained in:
parent
ffd088a38f
commit
a4ec6d3c9c
@ -97,14 +97,14 @@ class ChoiceFormField extends FormField
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ticks a checkbox.
|
* Unticks a checkbox.
|
||||||
*
|
*
|
||||||
* @throws \LogicException When the type provided is not correct
|
* @throws \LogicException When the type provided is not correct
|
||||||
*/
|
*/
|
||||||
public function untick()
|
public function untick()
|
||||||
{
|
{
|
||||||
if ('checkbox' !== $this->type) {
|
if ('checkbox' !== $this->type) {
|
||||||
throw new \LogicException(sprintf('You cannot tick "%s" as it is not a checkbox (%s).', $this->name, $this->type));
|
throw new \LogicException(sprintf('You cannot untick "%s" as it is not a checkbox (%s).', $this->name, $this->type));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setValue(false);
|
$this->setValue(false);
|
||||||
|
Reference in New Issue
Block a user