Can't deploy Forge site

Posted 6 months ago by eriktobben

Hi,

I was deploying my site via Forge and introduced a syntax error in the console kernel.

I fixed the error, pushed the code and tried to deploy again, but then I get this error:

PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/forge/domain.com/app/Console/Kernel.php on line 33

Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/forge/domain.com/app/Console/Kernel.php on line 33

I am not able to deploy the code because of this error.

What would cause the deploy script to fail because of a syntax error in the PHP code?

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