--TEST-- GH-17422 (OPcache bypasses the user-defined error handler for deprecations) - Inheritance warning --FILE-- --EXPECTF-- set_error_handler: Return type of C::getTimezone() should either be compatible with DateTime::getTimezone(): DateTimeZone|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice