Just a quick rough-up of a proposal idea by @firstname.lastname@example.org for static return type hints in PHP.
There's probably a little extra work to be done to ensure covariance rules are respected, but this is a place to start discussion.
Technology Strategy Consultant
Open source. Open community. We are dedicated to building and enriching the PHP community.