Closed
Description
Primary motivation:
- object typehint
- should eliminate lots of mixed types across whole code base
- greatly improving type safety & avoid potential mixed-related bugs
- clean-up public API
- less BC breaks in future versions
- parameter type widening
- could ease migration
- mostly theoretical benefitl? (added return types will still break user-land things)
As an example, here's how EntityManagerInterface would look for 7.2.
PHP 7.2 is due to release before the end of year. There's already alpha 2 (without object typehint - should arrive in alpha 3 / beta 1).
Thoughts?