Skip to content

Adopt the shared laranail Pint config - #3

Merged
imanimanyara merged 2 commits into
mainfrom
chore/adopt-shared-pint-config
Sep 6, 2026
Merged

imanimanyara merged 2 commits into
mainfrom
chore/adopt-shared-pint-config

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

composer pint runs vendor/bin/laranail-pint, which passes package-tools'
shared pint.json rather than any local one. Until the stale composer cache
was busted, that binary was missing and the step died with Could not open input file — so this check had never actually run here.

This is the reformat it asks for.

Cosmetic, and verified as such. Every file already declared strict_types,
so the config's declare_strict_types rule adds nothing. The full suite was run
before and after and returns the identical result — that equality was the
gate: any repo whose test count or assertion count moved was reverted rather
than committed, and three were.

Part of the org-wide adoption of the shared config. See
laranail/package-tools pint.json.

`composer pint` runs `vendor/bin/laranail-pint`, which passes package-tools'
**shared** `pint.json` rather than any local one. Until the stale composer cache
was busted, that binary was missing and the step died with `Could not open input
file` — so this check had never actually run here.

This is the reformat it asks for.

**Cosmetic, and verified as such.** Every file already declared `strict_types`,
so the config's `declare_strict_types` rule adds nothing. The full suite was run
before and after and returns the **identical** result — that equality was the
gate: any repo whose test count or assertion count moved was reverted rather
than committed, and three were.

Part of the org-wide adoption of the shared config. See
`laranail/package-tools` `pint.json`.
Copilot AI lite review requested due to automatic review settings September 4, 2026 14:00

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

The workflow ran `vendor/bin/pint --test` while `composer pint` runs
`vendor/bin/laranail-pint --test`. Those are not the same check: these repos ship
no pint.json at all, so the bare invocation used Pint's OWN defaults, not the
shared laranail config the composer script declares.

That is the false green laranail-pint exists to prevent - its own docblock
records forty-nine packages in exactly that state, all reporting clean. It is
also why the reformat in this PR made the step go red: the code now matches the
shared config, and the workflow was still checking against defaults.

Same binary as `composer pint` now, so CI and the composer script agree.
@imanimanyara
imanimanyara merged commit a3d7ea3 into main Sep 6, 2026
17 checks passed
@imanimanyara
imanimanyara deleted the chore/adopt-shared-pint-config branch September 6, 2026 12:02
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