Skip to content

PHP minimum version inconsistent: composer >=7.4 vs check_readiness() 7.1 #38

Description

@remyperona

Summary

The minimum PHP version is declared inconsistently.

  • composer.json: "php": ">=7.4"
  • bootstrap-functions.phpcheck_readiness(): version_compare( phpversion(), '7.1.0', '<' )

Impact

Composer already refuses to install on PHP < 7.4, so the runtime 7.1.0 guard is both stale and unreachable. It misleads anyone reading the bootstrap into thinking 7.1–7.3 is supported.

Proposed fix

Align the guard to 7.4.0, or drop the runtime check entirely and rely on Composer's platform requirement (which is enforced at install time). CI currently runs 7.4 → 8.5, so 7.4 is the correct floor.

Good first issue.


Found during an audit of WP Rocket's integration test suite, which depends on this package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions