Skip to content

[Issue] fix: update minimum PHP version check in bootstrap to 8.3 #40771

@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #40686: fix: update minimum PHP version check in bootstrap to 8.3


Description

Update the PHP version check in app/bootstrap.php to match the actual minimum PHP requirement.

Problem

The bootstrap file checks for PHP_VERSION_ID < 80100 (PHP 8.1.0) and displays an error message referencing PHP 8.1.0. However, composer.json requires ~8.3.0||~8.4.0||~8.5.0, making PHP 8.1 and 8.2 unsupported.

A user running PHP 8.1 or 8.2 would pass the bootstrap check but fail at Composer dependency resolution, leading to a confusing error instead of the clear bootstrap message.

Solution

Update the check to PHP_VERSION_ID < 80300 and the error message to reference "PHP 8.3.0", aligning with the actual composer.json requirement.

Files Changed

  • app/bootstrap.php

⭐ Support my work

Do you like the fix? Remember to react with "👍🏻" to get it merged faster,
Then Sponsor me on Github so I can spend more time on fixing issues like this one.

Learn more at https://github.com/sponsors/lbajsarowicz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: ready for confirmationReported on 2.4.xIndicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Ready for Confirmation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions