fix: handle PHP extended support versions in mw ddev init#1696
Merged
Conversation
Fixes mw ddev init failing when the mStudio project uses a PHP extended support version (e.g. 7.2-es). The fix normalizes such versions by stripping the -es suffix before passing them to DDEV config, and emits a warning alerting the user to the version difference. Closes #<issue>" Co-authored-by: martin-helmich <2538958+martin-helmich@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix mw ddev init failure for extended support PHP versions
fix: handle PHP extended support versions in Mar 11, 2026
mw ddev init
…rsion to return warnings Co-authored-by: martin-helmich <2538958+martin-helmich@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
martin-helmich
approved these changes
Mar 11, 2026
mittwald-machine
added a commit
that referenced
this pull request
Mar 12, 2026
## [1.13.4](v1.13.3...v1.13.4) (2026-03-12) ### Bug Fixes * **ddev:** handle PHP extended support versions in `mw ddev init` ([#1696](#1696)) ([0325053](0325053)), closes [#1695](#1695) * **ssh:** embed known host keys for mittwald clusters ([#1667](#1667)) ([1ab2917](1ab2917)), closes [#1260](#1260)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PHP extended support versions (e.g.
7.2-es) were passed verbatim toddev config --php-version, which DDEV rejects. The fix strips the-essuffix before writing the DDEV config and surfaces a warning to the user.Changes
config_builder.tsstripPatchLevelVersionnow strips the-essuffix (e.g.7.2-es→7.2)hasExtendedSupportSuffix/extendedSupportSuffixPattern(exported for testability)determinePHPVersionrefactored to return{ version, warnings }instead of mutating a caller-supplied arraybuild()return type changed toDDEVConfigBuildResult { config, warnings }init.tsx/render-config.ts: consume the new return shape; emit normalization warnings viar.addInfo()/this.warn()config_builder.test.ts(new): unit tests forhasExtendedSupportSuffixandstripPatchLevelVersionWarning emitted
Original prompt
mw ddev initfails for projects using PHP extended support #1695💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.