Skip to content

[6.x] Fix Pint lint workflow on PHP 8.6 images - #15977

Merged
jasonvarga merged 3 commits into
6.xfrom
fix-pint-lint-workflow
Nov 19, 2026
Merged

jasonvarga merged 3 commits into
6.xfrom
fix-pint-lint-workflow

Conversation

@jasonvarga

Copy link
Copy Markdown
Member

The "Lint code style issues" workflow started failing today on every PR that touches PHP files:

laravel/pint v1.16.0 requires ext-mbstring * -> it is missing from your system.

aglipanci/laravel-pint-action runs in an image built FROM composer:latest, which is built FROM php:8-alpine. PHP 8.6.0 was released today, so that image is now PHP 8.6, and the official PHP 8.6 images no longer compile mbstring (it was bundled with PEAR/PECL support, which was dropped for 8.6 in docker-library/php@536691f7). Pint requires ext-mbstring, so installing it fails.

This replaces the action with shivammathur/setup-php pinned to PHP 8.5 (same pinned version as phpstan.yml), installs the Pint 1.16.0 phar via tools: pint:1.16.0, and runs pint --test -v. Pinning the PHP version means future base-image bumps won't break the job.

Investigated in https://ampcode.com/threads/T-68cfe8ee-fa5f-4d01-a057-50f47922f66c

ampagent and others added 3 commits November 19, 2026 17:11
The laravel-pint-action image builds from composer:latest, which now runs
PHP 8.6. The official PHP 8.6 image no longer compiles mbstring, which Pint
requires, so installing Pint fails.

Amp-Thread-ID: https://ampcode.com/threads/T-68cfe8ee-fa5f-4d01-a057-50f47922f66c
Co-authored-by: Jason Varga <jason@pixelfear.com>
This reverts commit 703f397.

Co-authored-by: Jason Varga <jason@pixelfear.com>
@jasonvarga
jasonvarga merged commit f5d61bc into 6.x Nov 19, 2026
65 checks passed
@jasonvarga
jasonvarga deleted the fix-pint-lint-workflow branch November 19, 2026 17:19
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.

2 participants