Just a quick rough-up of a proposal idea by @email@example.com 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.