bug #26548 [DomCrawler] Change bad wording in ChoiceFormField::untick (dunglas)
This PR was merged into the 2.7 branch.
Discussion
----------
[DomCrawler] Change bad wording in ChoiceFormField::untick
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | yes
| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a <!-- #-prefixed issue number(s), if any -->
| License | MIT
| Doc PR | n/a
s/tick/untick/
Commits
-------
a4ec6d3
[DomCrawler] Change bad wording in ChoiceFormField::untick
This commit is contained in:
commit
df6024d560
@ -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