From 734dd0da7e50d8dab771c9ad198c5c57eb2d5db3 Mon Sep 17 00:00:00 2001 From: Klein Florian Date: Wed, 3 Oct 2012 17:06:56 +0200 Subject: [PATCH] fix bad variable name --- Parser/FormTypeParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);