webfactory / WebfactoryPolyglotBundle

Symfony bundle simplifying translations in Doctrine.
MIT License
3 stars 2 forks source link

Add type hints #15

Closed mpdude closed 8 months ago

mpdude commented 2 years ago

This PR adds a bunch of parameter and return type hints.

Parameter type hints should be safe to add in interfaces and classes, even when users might inherit from them.

For return type hints, only docblock-type hints can be added for now. I have added language-level type hints only in places where we can be very sure that inheritance from outside this bundle is not relevant.