Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fen's avatar
Level 2

as for php 7.0, which version of laravel ?

I just made an app with laravel 5.6, but the hosting server support only php 7.0 (not 7.1), which version of laravel should I downgrade? any idea? Thank you in advance.

0 likes
4 replies
fen's avatar
Level 2

I did, but still getting error Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE)

I am checking the dependencies..

Snapey's avatar

Its got to be said... choose a hosting provider that uses supported versions of PHP

v5.6 has only recieved security updates for the last 15 months and will be totally end of life in December 2018.

http://php.net/supported-versions.php

36864's avatar
36864
Best Answer
Level 13

@fen Did you run composer on a machine with php 7.1 and then copy the entire folder to the server?

If you do that, composer will install dependencies that depend on php 7.1. You can either run composer update on your 7.0 server to fix that, or add a version constraint to your composer.json file in your local machine to set the php dependency to 7.0.

Please or to participate in this conversation.