[DomCrawler] Change bad wording in ChoiceFormField::untick

This commit is contained in:
Kévin Dunglas 2018-03-15 18:10:20 +01:00
parent ffd088a38f
commit a4ec6d3c9c
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6
1 changed files with 2 additions and 2 deletions

View File

@ -97,14 +97,14 @@ class ChoiceFormField extends FormField
}
/**
* Ticks a checkbox.
* Unticks a checkbox.
*
* @throws \LogicException When the type provided is not correct
*/
public function untick()
{
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);