fix bad variable name

This commit is contained in:
Klein Florian 2012-10-03 17:06:56 +02:00
parent f9d4fb90cd
commit 734dd0da7e

View File

@ -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);