Benim kod boyunca alışmakta bir yapılandırma sınıf var. Bu sınıf içindeki bir değişken web sitesi URL. Son zamanlarda, benim sunucuya SSL eklendi ve şimdi ben bu kontrol ve protokol olarak 'http' veya 'https' da atamanız gerekir.
Denedim kodu:
<?php
class Test
{
public static $blah = (1 == 1) ? 'this' : 'or this';
}
echo Test::$blah;
?>
Bu bir ayrıştırma hatası üretir. Bunu nasıl düzeltebilirim? :/