Summary
The minimum PHP version is declared inconsistently.
composer.json: "php": ">=7.4"
bootstrap-functions.php → check_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.
Summary
The minimum PHP version is declared inconsistently.
composer.json:"php": ">=7.4"bootstrap-functions.php→check_readiness():version_compare( phpversion(), '7.1.0', '<' )Impact
Composer already refuses to install on PHP < 7.4, so the runtime
7.1.0guard 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.