dev-env create: Update PHP 8.4 as the recommended#2846
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
There was a problem hiding this comment.
Pull request overview
Updates VIP CLI dev-environment defaults to reflect PHP 8.3 as the recommended version when creating (and defaulting) dev environments.
Changes:
- Marks PHP 8.3 as “(recommended)” in the PHP image/label map.
- Reorders the PHP versions map so the default selection (derived from the first key) becomes PHP 8.3 instead of 8.2.
| export const DEV_ENVIRONMENT_DEFAULT_PHP_VERSION = '8.3' as const; | ||
|
|
||
| export const DEV_ENVIRONMENT_PHP_VERSIONS: Record< string, PhpImage > = { | ||
| 8.2: { |
c5d8847 to
202aafc
Compare
202aafc to
d13ce08
Compare
| result = DEV_ENVIRONMENT_PHP_VERSIONS[ version ].image; | ||
| result = | ||
| DEV_ENVIRONMENT_PHP_VERSIONS[ version as keyof typeof DEV_ENVIRONMENT_PHP_VERSIONS ].image; | ||
| } |
There was a problem hiding this comment.
@copilot apply changes based on this feedback
There was a problem hiding this comment.
Addressed in d52adc4. resolvePhpVersion() now uses an own-property check so prototype-chain values like toString are rejected safely, and I added a regression test for that case. No UI changes were involved here, so there isn’t a screenshot to share.
Agent-Logs-Url: https://github.com/Automattic/vip-cli/sessions/747814a4-7b7c-47c4-a84c-5abd7d4a0c1b Co-authored-by: rebeccahum <16962021+rebeccahum@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Automattic/vip-cli/sessions/747814a4-7b7c-47c4-a84c-5abd7d4a0c1b Co-authored-by: rebeccahum <16962021+rebeccahum@users.noreply.github.com>
|
we recommend 8.4 on the platform, should match that here as well. |
|
oyyyy its 8.4 now x_x kk on it |
…-cli into dev-env/php83/recommended
|



Description
W/ 8.2 EOL at the EOY, let's mark 8.4 as the recommended for dev-env creation.
Changelog Description
Changed
Pull request checklist
New release checklist
Steps to Test
Outline the steps to test and verify the PR here.
Example:
npm run build./dist/bin/vip-cookies.js nom