8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df6024d + c77d142 commit 9836dffCopy full SHA for 9836dff
src/Symfony/Component/DomCrawler/Field/InputFormField.php
@@ -32,11 +32,12 @@ protected function initialize()
32
throw new \LogicException(sprintf('An InputFormField can only be created from an input or button tag (%s given).', $this->node->nodeName));
33
}
34
35
- if ('checkbox' === strtolower($this->node->getAttribute('type'))) {
+ $type = strtolower($this->node->getAttribute('type'));
36
+ if ('checkbox' === $type) {
37
throw new \LogicException('Checkboxes should be instances of ChoiceFormField.');
38
39
- if ('file' === strtolower($this->node->getAttribute('type'))) {
40
+ if ('file' === $type) {
41
throw new \LogicException('File inputs should be instances of FileFormField.');
42
43
0 commit comments