Skip to content

ci: run cs-fix on the minimum supported PHP - #12

Merged
roxblnfk merged 1 commit into
1.xfrom
ci/cs-fix-php
Oct 22, 2026
Merged

roxblnfk merged 1 commit into
1.xfrom
ci/cs-fix-php

Conversation

@roxblnfk

Copy link
Copy Markdown
Member

What was changed

  • The cs-fix job now runs on PHP 8.1 instead of the default of the reusable workflow.

Why?

  • feat: optional bamarni-bin tool and command inputs for the psalm and cs-fix workflows spiral/gh-actions#14 sets the default php of cs-fix.yml to 8.2 and installs the root with --ignore-platform-req='ext-*' instead of --ignore-platform-reqs, so the PHP version is now checked. Each caller passes its own minimum PHP explicitly.
  • PHP 8.1: require.php is >=8.1 and the root with dev dependencies installs on it (internal/dload resolves to 1.14, the last release for 8.1).
  • On PHP 8.1 spiral/code-style resolves to 2.3.x: 2.4 needs PHP 8.2, so its import ordering rules are not applied here.

Checklist

  • Tested
    • Tested manually: strict install and php-cs-fixer fix --dry-run on PHP 8.1 locally

spiral/gh-actions#14 defaults the reusable cs-fix workflow to PHP 8.2 and stops ignoring the PHP platform requirement, so each caller passes its own minimum PHP.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@roxblnfk
roxblnfk merged commit a8cad18 into 1.x Oct 22, 2026
15 of 34 checks passed
@roxblnfk
roxblnfk deleted the ci/cs-fix-php branch October 22, 2026 12:25
Sign up for free to 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.

1 participant