Skip to content

dev-env create: Update PHP 8.4 as the recommended#2846

Open
rebeccahum wants to merge 8 commits into
trunkfrom
dev-env/php83/recommended
Open

dev-env create: Update PHP 8.4 as the recommended#2846
rebeccahum wants to merge 8 commits into
trunkfrom
dev-env/php83/recommended

Conversation

@rebeccahum
Copy link
Copy Markdown
Contributor

@rebeccahum rebeccahum commented May 19, 2026

Description

W/ 8.2 EOL at the EOY, let's mark 8.4 as the recommended for dev-env creation.

Changelog Description

Changed

  • dev-env: Set PHP 8.4 as the new recommended version

Pull request checklist

New release checklist

Steps to Test

Outline the steps to test and verify the PR here.

Example:

  1. Check out PR.
  2. Run npm run build
  3. Run ./dist/bin/vip-cookies.js nom
  4. Verify cookies are delicious.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/lib/constants/dev-environment.ts Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Comment thread src/lib/constants/dev-environment.ts Outdated
Comment on lines 30 to 33
export const DEV_ENVIRONMENT_DEFAULT_PHP_VERSION = '8.3' as const;

export const DEV_ENVIRONMENT_PHP_VERSIONS: Record< string, PhpImage > = {
8.2: {
@rebeccahum rebeccahum force-pushed the dev-env/php83/recommended branch from c5d8847 to 202aafc Compare May 19, 2026 21:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Comment on lines 779 to 790
result = DEV_ENVIRONMENT_PHP_VERSIONS[ version ].image;
result =
DEV_ENVIRONMENT_PHP_VERSIONS[ version as keyof typeof DEV_ENVIRONMENT_PHP_VERSIONS ].image;
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/lib/dev-environment/dev-environment-cli.ts
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>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.

@rebeccahum rebeccahum requested a review from a team May 19, 2026 21:39
@rinatkhaziev
Copy link
Copy Markdown
Contributor

we recommend 8.4 on the platform, should match that here as well.

Copy link
Copy Markdown
Contributor

@rinatkhaziev rinatkhaziev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re: 8.4

@rebeccahum
Copy link
Copy Markdown
Contributor Author

oyyyy its 8.4 now x_x kk on it

@sonarqubecloud
Copy link
Copy Markdown

@rebeccahum rebeccahum requested a review from rinatkhaziev May 19, 2026 21:54
@rebeccahum rebeccahum changed the title dev-env create: Update PHP 8.3 as the recommended dev-env create: Update PHP 8.4 as the recommended May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants