--TEST-- GH-17422 (OPcache bypasses the user-defined error handler for deprecations) - Inheritance error after warning --FILE-- --EXPECTF-- Deprecated: 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 in %s on line %d Fatal error: Declaration of C::getTimestamp(C $arg): int must be compatible with DateTime::getTimestamp(): int %s on line %d