Skip to content

Makefile: target PHP 7.4 (and matrix 8.0-8.5), use phpcs.xml.dist - #37

Merged
rick-lam merged 1 commit into
masterfrom
fix/makefile-php-versions
May 28, 2026
Merged

Makefile: target PHP 7.4 (and matrix 8.0-8.5), use phpcs.xml.dist#37
rick-lam merged 1 commit into
masterfrom
fix/makefile-php-versions

Conversation

@rick-lam

@rick-lamrick-lam commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

make test is broken on master because the Makefile defaults to PHP 7.2 and composer now requires PHP >= 7.4 — every target fatals at composer's platform check:

Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.2.26.
PHP Fatal error: ... in /srv/vendor/composer/platform_check.php:22

Changes

  • PHP_VER default 7.27.4 (the supported floor).
  • lint / lint-fix pass --standard=./phpcs.xml.dist to phpcs/phpcbf so local lint matches CI (and applies the mixed-type-hint exclusion added in Add PHP 8.0-8.5 support #36).
  • test-matrix updated: PHP 7.4 + 8.0, 8.1, 8.2, 8.3, 8.4, 8.5 (drop EOL 5.6/7.0/7.1/7.2). graze/php-alpine publishes -test tags for all of these, so make test-matrix actually runs the full matrix locally.

Verification

  • make test (default PHP 7.4) → PHPUnit 9.6.34 on PHP 7.4.26: 131 tests / 696 assertions, OK.
  • make PHP_VER=8.5 test → PHPUnit 9.6.34 on PHP 8.5: 131 tests / 696 assertions, OK (with PHP 8.x deprecation notices that don't fail the suite — implicit-nullable params in Display\Lines/Display\Table, PriorityPoolSerializable, graze/data-structureCountable::count return type. Worth a follow-up issue but not a blocker).

🤖 Generated with Claude Code

CopilotAI review requested due to automatic review settings May 28, 2026 11:56

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the local Makefile workflow to match the repository’s current PHP support floor and CI lint configuration.

Changes:

  • Updates the default Docker PHP version from 7.2 to 7.4.
  • Runs phpcs/phpcbf with phpcs.xml.dist to match CI.
  • Simplifies the local test-matrix target to PHP 7.4, with comments pointing to CI for the broader matrix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadMakefile
- PHP_VER default 7.2 -> 7.4 (composer now requires PHP >= 7.4, so the
previous default fatal'd at composer platform_check.php).
- Pass --standard=./phpcs.xml.dist to phpcs/phpcbf so local lint matches CI
(and applies the mixed-type-hint exclusion).
- test-matrix updated: PHP 7.4 + 8.0, 8.1, 8.2, 8.3, 8.4, 8.5 (drop EOL
5.6/7.0/7.1/7.2). graze/php-alpine ships -test tags for all of these.
Verified end-to-end: `make test` (default 7.4) and `make PHP_VER=8.5 test` both
pass — 131 tests / 696 assertions, OK.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rick-lam
rick-lamforce-pushed the fix/makefile-php-versions branch from a8926d1 to e3bd8feCompareMay 28, 2026 16:54
@rick-lamrick-lam changed the title Makefile: target PHP 7.4 and use phpcs.xml.distMakefile: target PHP 7.4 (and matrix 8.0-8.5), use phpcs.xml.distMay 28, 2026
@rick-lam
rick-lam merged commit 76e1bf9 into masterMay 28, 2026
8 checks passed
rick-lam added a commit to graze/console-diff-renderer that referenced this pull request May 28, 2026
….0-8.5
- lint/lint-fix pass --standard=./phpcs.xml so local lint matches CI.
- test-matrix runs PHP 7.4 + 8.0, 8.1, 8.2, 8.3, 8.4, 8.5.
Mirrors graze/parallel-process#37.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rick-lam
rick-lam deleted the fix/makefile-php-versions branch May 28, 2026 18:01
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@rick-lam