What is the php error?

Tell me what's the error?

Piece of code:
public function postsList($route) {
 $max = 10;
 $params = [
 'max' => $max,
 'start' => ((($route['page'] ?? 1) - 1) * $max),
];
 return $this->db->row('SELECT * FROM posts ORDER BY id DESC LIMIT :start, :max', $params);
 }


Error
Parse error: syntax error, unexpected '?' in W:\domains\php-blog-master\application\models\Main.php on line 35
April 19th 20 at 12:22
1 answer
April 19th 20 at 12:24
Solution
It is not clear where the 35 line. But I suspect that he is swearing on ??, perhaps you have a version less than 7 pykhy.

Find more questions by tags PHP