Witam.
Chciałem postawić apkę laravel z lokalnego serwera na VPS w Amazonie. Ale po uruchomieniu jedynie co widzę to pustą stronę a w logach mam błędy składni jak poniższe.
Moja wersja php na serwerze to: "PHP 7.2.7-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Jun 22 2018 08:44:50) ( NTS )"
[Wed Jun 27 11:02:55.003796 2018] [:error] [pid 12521] [client 2.120.207.3:49935] PHP Parse error: syntax error, unexpected '?' in /var/www/html/test/vendor/symfony/http-foundation/Response.php on line 491
[Wed Jun 27 11:02:55.003822 2018] [:error] [pid 12521] [client 2.120.207.3:49935] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
[Wed Jun 27 10:57:59.602396 2018] [:error] [pid 12521] [client 2.120.207.3:49524] PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /var/www/html/test/app/Helpers/customHelper.php on line 138
Czyli wskazuje na wiersze takie jak:
public function getCharset(): ?string
function trimText(?string $text, int $maxCharNum, string $end) : ?string
Więc co jest grane? Należy jakiś moduł zainstalować na serwerze?