In order to provide the second parameter for the PHP function json_encode "options" I use a predefined variable
public $jsonParameters = JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE;
and call it later with
json_encode($result, $this->jsonParameters);
This worked all the time but now on one customer server it leads to the following error message:
Parse error: syntax error, unexpected '|', expecting ',' or ';' in
Is this not a correct way to use the pipe character? But how did it work everywhere else?