Skip to content

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

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions