diff --git a/Parser/FormTypeParser.php b/Parser/FormTypeParser.php index 43f815d..ce2d879 100644 --- a/Parser/FormTypeParser.php +++ b/Parser/FormTypeParser.php @@ -65,7 +65,7 @@ class FormTypeParser implements ParserInterface public function parse($type) { if (is_string($type) && class_exists($type)) { - $item = unserialize(sprintf('O:%d:"%s":0:{}', strlen($item), $item)); + $type = unserialize(sprintf('O:%d:"%s":0:{}', strlen($type), $type)); } $form = $this->formFactory->create($type);