Laravel 5.6: Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE)

Posted 11 months ago by patriknemecek

Hello, when I was solve problem with TrustedProxies, I got another error 500 with error message:

local.ERROR: Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) at vendor/symfony/routing/Route.php:53).

Before upgrade all works fine.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.