-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Symfony 5.4 depends on PHP 7.2.5 but some of his dependencies require PHP 8.0.0 #42250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you sure that you create the project using PHP 7? Can you share the output of |
yes I did created with PHP 7 the result of composer show is in my issue - or do you mean something else? |
I am interested in the output of |
|
When I execute the Can you run |
ok - you're right - it installed version 1.0.1 not sure what happened in my previous install but i do have a theory sorry for wasting your time |
On the other hand... maybe it would a good idea configure it so that symfony 5.4 won't ever install psr/cache past 1.x.x say a developer is working with php8 but when his/her job is done deployment is done to a server with php7 |
This error is exactly there to help in this situation. What this error is saying is: "the process that generated the I see no reason to block psr/cache 2.0 from Symfony 5.x. It's perfectly fine to use Symfony 5.x on PHP 8. |
A little tip, wrap big chunks of code in a
He. I'm hidden by default.
|
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 5.4.x@dev
Description
Symfony 5.4.x has a requirement of PHP >= 7.2.5 set in composer.json but if i try to access it with anything below PHP 8.0.0 I get an error saying it has dependencies that require PHP >= 8.0.0 - shouldn't 5.4.x require PHP >= 8.0.0
When accessing Symfony 5.4 hosted on a server with PHP 7 you get the following error
How to reproduce
Create a project using version 5.4.x on a server with PHP 7
composer create-project symfony/website-skeleton:"5.4.x@dev" myproject
Access using a browser
Possible Solution
Either change symfony to require PHP8 or find what dependencies require PHP8 and downgrade them to a version that works with PHP 7
Additional context
according to composer, the dependencies that cause this is
psr/cache
,Here's the result of
composer show -i -t
in case i missed somethingThe text was updated successfully, but these errors were encountered: