Abhoryo / APYJsFormValidationBundle

This bundle performs validations of a form in javascript. (i18n compatible and several javascript frameworks supported)
92 stars 23 forks source link

buildForm() must be compatible #25

Closed mjuchli closed 12 years ago

mjuchli commented 12 years ago

Hi there,

I use symfony 2.0.15 and get following error:

Fatal error: Declaration of APY\JsFormValidationBundle\Form\Extension\FormTypeExtension::buildForm() must be compatible with Symfony\Component\Form\FormTypeExtensionInterface::buildForm(Symfony\Component\Form\FormBuilder $builder, array $options) in /...pwd.../vendor/bundles/APY/JsFormValidationBundle/Form/Extension/FormTypeExtension.php on line 104

Deps:

[JsFormValidationBundle] git=git://github.com/Abhoryo/APYJsFormValidationBundle.git target=bundles/APY/JsFormValidationBundle version=2.0

Also tried:

[JsFormValidationBundle] git=git://github.com/Abhoryo/APYJsFormValidationBundle.git target=bundles/APY/JsFormValidationBundle

Any ideas?

Abhoryo commented 12 years ago

https://github.com/Abhoryo/APYJsFormValidationBundle/blob/2.0/Form/Extension/FormTypeExtension.php

In 2.0 branch buildform isn't override so you can't have this error.

I don't know how to get the 2.0 version with deps but in your case it's not working.

recipe commented 12 years ago

We should update our branch accordingly

https://github.com/symfony/symfony/blob/2.0/src/Symfony/Component/Form/FormTypeInterface.php

They did changes

Abhoryo commented 12 years ago

buildform method isn't overrided in the 2.0 branch!

mjuchli commented 12 years ago

Shame on me. I didn't recognize the deps.lock file where master was still added.

Sorry for that.