diff options
Diffstat (limited to 'ext/opcache/tests/bug73746.phpt')
-rw-r--r-- | ext/opcache/tests/bug73746.phpt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/opcache/tests/bug73746.phpt b/ext/opcache/tests/bug73746.phpt index 4f115575cf..c95aed8076 100644 --- a/ext/opcache/tests/bug73746.phpt +++ b/ext/opcache/tests/bug73746.phpt @@ -8,19 +8,19 @@ namespace Core\Bundle\Service\Property\Room\Rooms; class CountryMapping { - const CZ = 'CZ'; - const EN = 'EN'; + const CZ = 'CZ'; + const EN = 'EN'; - public function get(string $countryIsoCode = null) : string // Works correctly if return type is removed - { - switch (strtoupper($countryIsoCode)) { - case 'CZ': - case 'SK': - return self::CZ; // Works correctly if changed to CountryMapping::CZ - default: - return self::EN; // Works correctly if changed to CountryMapping::EN - } - } + public function get(string $countryIsoCode = null) : string // Works correctly if return type is removed + { + switch (strtoupper($countryIsoCode)) { + case 'CZ': + case 'SK': + return self::CZ; // Works correctly if changed to CountryMapping::CZ + default: + return self::EN; // Works correctly if changed to CountryMapping::EN + } + } } $mapping = new CountryMapping(); |