mark-gerarts / automapper-plus

An AutoMapper for PHP
MIT License
551 stars 30 forks source link

Support for PHP 7.4 class typed properties mapping #71

Closed kamdrum closed 3 years ago

kamdrum commented 3 years ago

The mapper doesn't map to class typed properties. Can it be somehow configured or is it not supported?

mark-gerarts commented 3 years ago

Hi @kamdrum, this should be supported starting from 1.3.11. If you're on this version or higher, can you show an example of it not working?

kamdrum commented 3 years ago

Hi @mark-gerarts, thank you for your prompt answer. I'm on version 1.3.0 and it's marked as the latest release, so how can I update it to version 1.3.11?

mark-gerarts commented 3 years ago

That's weird, the latest release should be 1.3.12 (packagist). Unless you're using the Symfony bundle? In that case an update --with-dependencies of the bundle should do the trick.

kamdrum commented 3 years ago

Thank you for your help - now it works properly :)