Having problem with librenms

Parse error : syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /opt/librenms/vendor/zendframework/zend-diactoros/src/functions/marshal_uri_from_sapi.php on line 83

how can solve this problem?

That means you aren’t running PHP 7.1 or newer.

will the problem solve if I update PHP version?