A PHP internals RFC discussion proposes deprecating return values from __construct() and __destruct() magic methods. The RFC author Tim Düsterhus argues this aligns with PHP's broader direction of surfacing mistakes rather than silently ignoring them. Community members Rowan Tommins and Larry Garfield support the feature but request the RFC better explain how it differs from a previously declined proposal (make_ctor_ret_void). The scope was also expanded to cover using yield in constructors/destructors, which effectively returns a value and causes surprising behavior. An impact analysis based on the Packagist top 4000 packages was contributed by Juliette Reinders Folmer using an existing PHP_CodeSniffer sniff.
1 Impression