Skip to content

Commit

Permalink
Remove null check
Browse files Browse the repository at this point in the history
  • Loading branch information
umpirsky committed Jan 15, 2019
1 parent bb00252 commit 9feae63
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -66,7 +66,7 @@ public function preSubmit(FormEvent $event)
if ($form->isRoot() && $form->getConfig()->getOption('compound') && !$postRequestSizeExceeded) {
$data = $event->getData();

if (isset($data[$this->fieldName]) && null !== $data[$this->fieldName] && !\is_string($data[$this->fieldName])) {
if (isset($data[$this->fieldName]) && !\is_string($data[$this->fieldName])) {
unset($data[$this->fieldName]);
}

Expand Down

0 comments on commit 9feae63

Please sign in to comment.