Catchable Fatal Error in form event subscriber using Symfony 2.3 -
after updating symfony 2.3 2.1, there strange message when trying create form : catchable fatal error: argument 1 passed msgr\profilebundle\form\eventlistener\addnamefieldsubscriber::presetdata() must instance of symfony\component\form\event\dataevent, instance of symfony\component\form\formevent given in /xxxxxx/aaas/src/msgr/profilebundle/form/eventlistener/addnamefieldsubscriber.php line 29 these usual suspects : profiletype.php <?php namespace aaas\profilebundle\form; use doctrine\orm\entityrepository; use symfony\component\form\formfactoryinterface; use symfony\component\form\abstracttype; use symfony\component\form\formbuilderinterface; use symfony\component\optionsresolver\optionsresolverinterface; use aaas\profilebundle\form\eventlistener\addnamefieldsubscriber; class profiletype extends abstracttype { public function buildform(formbuilderinterface $builder, array $options) { $subscriber = new addnamefieldsubscriber($builder->getformfa