Fix PHP version in DDEV setup - #1783
Conversation
|
Another possible approach would be to introduce a PHP-version mapping for the supported Contao versions. However, I am not sure whether the additional complexity would be justified, or whether it is sufficient to ensure that the default setup works with the current Contao version by updating the PHP version in this guide. A simpler alternative could be to introduce a separate site parameter, such as |
That's not really necessary, unless you want to run legacy versions of Contao - which I think would be out of scope for this guide anyway. |
Description
Update the PHP version in the DDEV installation examples from PHP
8.2to PHP8.4.The guide inserts the current Contao version into the installation command, while the PHP version in the preceding DDEV configuration is hard-coded. This can cause the two requirements to become inconsistent when the minimum PHP version changes.
This is currently the case for Contao 5.7 (which is shown as the default setup guide):
Following these commands in a clean project fails during dependency resolution because Contao 5.7 requires PHP
8.3or higher.Updating the DDEV configuration to PHP
8.4ensures that the documented default setup works with the current Contao version shown on the same page.