LinioIT / dynamic-form-bundle

Generates symfony forms based on Yaml configuration files
18 stars 11 forks source link

docs: change type of data to mixed for Form Interface #23

Closed Rocko10 closed 4 years ago

Rocko10 commented 4 years ago

The method createForm can allow more types than array on the data params.

Also the returning value is of type FormInterface which on getData is a mixed type: https://github.com/symfony/form/blob/master/FormInterface.php#L121

Why When upgrading versions of linting tools (phpstan), the method createForm is being used with objects as arguments on the data parameter which produce an error.