Skip to content

Conversation

@BrunoKingbee
Copy link

Recently upgraded to symfony 7.0 with this package installed and noticed the error:
Compile Error: Declaration of Tetranz\Select2EntityBundle\Form\DataTransformer\EntitiesToPropertyTransformer::transform($value) must be compatible with Symfony\Component\Form\DataTransformerInterface::transform(mixed $value): mixed

This interface expects native types in the params and return types of this class.

@Ghjoost
Copy link

Ghjoost commented Apr 22, 2024

You should type public function getConfigTreeBuilder(): TreeBuilder {...} too ( Tetranz\Select2EntityBundle\DependencyInjection\Configuration )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants