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 9817f1f commit b564d44Copy full SHA for b564d44
src/Extension/Validation/ValidationListener.php
@@ -56,7 +56,7 @@ public function validateRules(FormEvent $event)
56
if ($event->getForm()->isRoot()) {
57
$root = $event->getForm();
58
$rules = $this->findRules($root);
59
- $validator = $this->validator->make($this->data, $rules);
+ $validator = $this->validator->make($this->data ?: [], $rules);
60
61
if ($validator->fails()) {
62
// Add all messages to the original name
0 commit comments