Код: Выделить всё
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in C:\xampp\htdocs\lib\libchart\classes\view\chart\PieChart.php on line 67
Код: Выделить всё
return $v1[0] == $v2[0] ? 0 :
Код: Выделить всё
protected function sortPie($v1, $v2) {
return $v1[0] == $v2[0] ? 0 :
$v1[0] > $v2[0] ? -1 :
1;
}
Просто скрипт для работы с PHP8
Подробнее здесь: https://stackoverflow.com/questions/792 ... d-e-is-not
Мобильная версия