Skip to content

chore: raise the minimum PHP version to 8.4.1 - #17

Merged
heitoralthmann merged 1 commit into
mainfrom
chore/php-8.4.1
Aug 22, 2026
Merged

heitoralthmann merged 1 commit into
mainfrom
chore/php-8.4.1

Conversation

@heitoralthmann

Copy link
Copy Markdown
Owner

O código do CLI não precisa de nada que só exista no 8.4.1. Quem exige é o
PHPUnit 13, adotado no #16 junto com as outras atualizações de ferramentas
de desenvolvimento: ele declara php >= 8.4.1.

Declarar require: php ^8.4 enquanto o require-dev exige >= 8.4.1 deixava
um install de desenvolvimento em 8.4.0 exato falhar na resolução de
dependência
em vez de bater num requisito declarado — erro de composer em vez
de mensagem clara. Subir o piso faz a declaração dizer a verdade.

Para quem só instala o CLI o efeito prático é nulo: require-dev não é
resolvido para consumidores, e o 8.4.1 substituiu o 8.4.0.

Alcance

A matriz do CI não muda: setup-php com 8.4 já resolve para o patch mais
recente, bem acima do 8.4.1.

Verificação local

505 testes / 1644 asserções, PHPStan sem erros, phpcs limpo, docs:check em
dia, composer validate --strict válido e o dependency analyser sem
apontamentos.

The CLI's own code needs nothing that only exists in 8.4.1. PHPUnit 13,
adopted with the other dev-tooling updates, requires php >= 8.4.1, so
declaring ^8.4 left a development install on exactly 8.4.0 failing during
dependency resolution rather than against a stated requirement.

Raising the floor makes the declaration honest. For anyone who only
installs the CLI the practical effect is nil: require-dev is never
resolved for them, and 8.4.1 superseded 8.4.0.

Also updates the places that state the requirement — the README badge and
both "Requisitos" sections — so the docs do not contradict composer.json.
@heitoralthmann
heitoralthmann merged commit 03a0f2e into main Aug 22, 2026
12 checks passed
@heitoralthmann
heitoralthmann deleted the chore/php-8.4.1 branch August 22, 2026 04:48
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