Skip to content

[#16] - PHP 8.2 or later - #121

Merged
niden merged 11 commits into
masterfrom
T16-php-8.2
Nov 28, 2026
Merged

niden merged 11 commits into
masterfrom
T16-php-8.2

Conversation

@niden

@niden niden commented Nov 28, 2026

Copy link
Copy Markdown
Member

Hello!

In raising this pull request, I confirm the following:

  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • composer test, composer cs and composer analyze all pass
  • I have created a PR for the documentation about this change, if user facing

Crest needs PHP 8.2 or later, the floor of phalcon/migrations.

  • composer.json: "php": "^8.2", and config.platform.php is 8.2.0. The lock is updated for 8.2: symfony/* 6.4 to 7.4 (dev dependencies only).
  • CI: no 8.1 cell in the unit tests; the quality, database and coverage jobs run on 8.2.
  • crest new --php: the floor is 8.2, because the project requires crest as a dev dependency. --php 8.1 stops with PHP 8.1 is too old; crest needs 8.2 or later.
  • Two comments about the limits of PHP 8.1 are removed (Option, Skeletons).
  • resources/infection.json5: the source is ../src. Infection 0.32 (the version that composer gives for PHP 8.2) reads each path from the folder of the file; 0.29 read src from the project root. The other paths of the file already start with ../.
  • Docs: the requirements, and the --php option.

Docker needs no change: the defaults are 8.4.

Infection, local only: on PHP 8.2, composer require --dev infection/infection gives 0.32.6 and a stable thecodingmachine/safe (v3.4.0, not dev-master as at 8.1). A run on NewCommand.php: 230 of 230 mutants killed, no deprecation, no warning.

Thanks

… the lock for 8.2, CI with no 8.1 cell, and the source path of Infection 0.32

Assisted-by: Claude Code
…omments about the limits of PHP 8.1

Assisted-by: Claude Code
Assisted-by: Claude Code
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

…thecodingmachine/safe gives warnings on PHP 8.4 and 8.5

Assisted-by: Claude Code
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

…lders(): scandir() of a missing folder already gives no folders

Assisted-by: Claude Code
…ersion banner alone, an integer key in the scaffold, a missing path with an ending of PATHEXT, and a table in two schemas on SQLite

Assisted-by: Claude Code
…phalcon/phalcon), and the ignores of Infection 0.32: ReturnRemoval and the regex form of the Ternary ignore

Assisted-by: Claude Code
Assisted-by: Claude Code
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

… the files: a class after a skipped class is listed

Assisted-by: Claude Code
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

…xist, so that the coverage does not go down

Assisted-by: Claude Code
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code Metrics Report

master (81a28eb) T16-php-8.2 (465d392) +/-
Coverage 99.8% 99.8% +0.0%
Test Execution Time 13s 9s -4s
Details
  |                     | master (81a28eb) | T16-php-8.2 (465d392) |  +/-  |
  |---------------------|------------------|-----------------------|-------|
+ | Coverage            |            99.8% |                 99.8% | +0.0% |
  |   Files             |               97 |                    97 |     0 |
  |   Lines             |             4203 |                  4201 |    -2 |
- |   Covered           |             4196 |                  4195 |    -1 |
+ | Test Execution Time |              13s |                    9s |   -4s |

Code coverage of files in pull request scope (99.4% → 99.7%, patch 100.0%)

Files Coverage +/- Patch Coverage Status
resources/src/Command/Route/ListCommand.php 97.5% +2.4% - affected
src/Command/NewCommand.php 100.0% 0.0% 100.0% modified
src/Console/Parsing/Option.php 100.0% 0.0% - modified
src/Generator/ModuleLocation.php 100.0% 0.0% - modified
src/Generator/Project/Skeletons.php 100.0% 0.0% - modified

Reported by octocov

@niden
niden merged commit 95923ab into master Nov 28, 2026
40 checks passed
@niden
niden deleted the T16-php-8.2 branch November 28, 2026 16:10
@niden niden mentioned this pull request Nov 29, 2026
5 tasks done
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