Closed Rocko10 closed 4 years ago
The method createForm can allow more types than array on the data params.
createForm
data
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
FormInterface
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.
The method
createForm
can allow more types than array on thedata
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#L121Why When upgrading versions of linting tools (phpstan), the method
createForm
is being used with objects as arguments on thedata
parameter which produce an error.