PHP Parse error: syntax error, unexpected '|'

Hi
When deploying a project, for testing, in v. 2022.5 on a Hostgator site using PHP Version 7.3.3 an unexpected syntax error occurred:"PHP Parse error: syntax error, unexpected ‘|’, expecting variable (T_VARIABLE) in …/vendor/psr/log/src/LoggerTrait.php on line 23"line 23 of LoggerTrait.php
public function emergency(string|\Stringable $message, array $context = ): void.Please inform us how to proceed.

https://discourse.hkvstore.com/t/unexpected-error/5063/1