D
D
deadnice2020-08-01 22:33:59
PHP
deadnice, 2020-08-01 22:33:59

Is it normal that the hosting has a lower version of php than the requirement for libraries in composer.lock?

I came across a project in which many libraries in composer.lock have the min requirement php 7+, the hosting is php 5.5.9 and the project is working. (Accordingly, local dependencies did not want to be installed on php 5.5.9).

Does this mean that the dependencies were built in an environment with php version 7+? If so, how safe would it be to upgrade the php version to 7+ on hosting?

Is it normal to continue the old practice, collect locally on 7+ and send to hosting? There are suspicions that it is not.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid, 2020-08-02
@caballero

if the version is worth it for a reason, then sooner or later you will run into an error in one of the libraries

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question