freepbx installation fail on debian 12 lxd container

Dear all,

I tried to install freepbx 17 on a debian 12 LXD container. It failed see attached.

“I had a look in the specific log and what I found out was :ParseError: syntax error, unexpected token “return” in file /var/www/html/admin/ libraries/BMO/GPG.class.php on line 136”

what went wrong ?

KR

Lutz