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.
1 parent d260d62 commit 07051a2Copy full SHA for 07051a2
src/Forms/Container.php
@@ -132,7 +132,9 @@ public function isValid()
132
public function validate(array $controls = NULL)
133
{
134
foreach ($controls === NULL ? $this->getComponents() : $controls as $control) {
135
- $control->validate();
+ if ($control instanceof IControl || $control instanceof self) {
136
+ $control->validate();
137
+ }
138
}
139
if ($this->onValidate !== NULL) {
140
if (!is_array($this->onValidate) && !$this->onValidate instanceof \Traversable) {
0 commit comments