1--TEST--
2Test that a notice is emitted when the tentative return type of the overridden method is omitted
3--FILE--
4<?php
5class MyDateTimeZone extends DateTimeZone
6{
7    public static function listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode = null)
8    {
9    }
10}
11?>
12--EXPECTF--
13Deprecated: Return type of MyDateTimeZone::listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode = null) should either be compatible with DateTimeZone::listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode = null): array, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in %s on line %d
14