Repository navigation
Merge 4.8.x into 4.9.x - #244
Merged
Merged
Conversation
* test: assert the types of PackagingTest with assertIsArray and assertIsString Rector 2.8.5, in the phpqa:8.4 image rebuilt on 2026-11-22, applies AssertTrueFalseToSpecificMethodRector to tests/PackagingTest.php: assertTrue(is_array()) becomes assertIsArray() and assertTrue(is_string()) becomes assertIsString(), so `castor rector` exits 2 on 4.8.x. The change is the one 4.9.x made to the same file in 8af085b (#230), byte for byte, so the merge-up into 4.9.x takes it without a conflict. The assertions check the same thing. Assisted-by: Claude Opus 5.5 * test: a data provider yields what the test method accepts The mutation testing job has failed on every push to 4.8.x since 10 September, and the failure is not in src/: Infection runs the newest PHPUnit of the phpqa image (13.3.1 then, 13.4.8 now), while the test jobs run phpunit-11. PHPUnit 13 warns when a data set carries more arguments than the test method takes: 6 tests, 49 warnings, in four classes. The suite is configured with failOnWarning, so the initial run Infection needs exits 1 and it stops with "Project tests must be in a passing state before running Infection". This is the change 4.9.x made in e984d6b (#236), restricted to the four classes 4.8.x has: KeyRestrictionEnforcementTest, PrehashedEdDSATest, OversizedRsaKeyTest and DeprecatedTagClassesTest. Each rich provider stays the single source of truth; the methods that read only its first values take a narrow provider derived from it. No test, no data set and no assertion changes: 124 tests and 296 assertions in these classes before and after under phpunit-11, and the same under PHPUnit 13.4.8, where the warnings are gone. Assisted-by: Claude Opus 5.5 * docs: align the support matrix with the one of the default branch RELEASES.md on 4.8.x still listed 4.8.x as in development, 4.7.x as supported and 4.6.x and 4.5.x as receiving security fixes, while the matrix of the default branch, which SECURITY.md names as the single source of truth, lists 4.9.x in development, 4.8.x supported and nothing below 4.8.x (#238). The table is now the one of 4.9.x, line for line, so both branches say the same thing and the merge-up into 4.9.x takes it without a conflict. Assisted-by: Claude Opus 5.5
`castor infect` runs `composer exec -- infection`, and `composer exec` kills its child process after `process-timeout`, 300 seconds by default. The Mutation Testing job of 4.9.x died at exactly that limit (run 45197554242). The one of 4.8.x still finishes, but its Infection step took 232 seconds on the last push (run 45226114186), so a few more tests or a slower runner would kill it the same way. `COMPOSER_PROCESS_TIMEOUT=0` lifts that ceiling, and the job now carries `timeout-minutes: 45` so that a run which really is stuck cannot burn the six hours GitHub grants by default. The variable is set by the castor task rather than by the workflow, because `phpqa()` dropped its environment on exactly the path the CI takes: it passed it as `docker run -e` options, and it skips Docker whenever it already runs inside a container. The helper now takes a name => value map and applies it to both paths. This is 095a7fe (#241) of 4.9.x, byte for byte, so the merge-up into 4.9.x takes it without a conflict. Assisted-by: Claude Opus 5.5
* 4.8.x: ci: let the mutation run outlive Composer's process timeout (#242) ci: green 4.8.x again with today's phpqa images (#240) Git merges tests/Algorithm/KeyRestrictionEnforcementTest.php without a textual conflict, but the result declares getForbiddenOperations() twice: #240 and #236 each added it right after getForbiddenCombinations(), whose data sets differ between the two lines, so git sees two separate insertions. 4.9.x's side is kept, so the merged tree is the one of 4.9.x. Assisted-by: Claude Opus 5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Target branch: 4.9.x
Merge-up of 4.8.x into 4.9.x. 4.8.x has two commits 4.9.x lacks: d5499a1 (#240) and 6f1aebe (#242).
Why #240 is listed again
#243 was squash-merged (7ae4c96 has a single parent), so 4.9.x did not record the merge of 4.8.x: the merge base of the two lines is still 8849e8b, and the next merge-up would bring #240 back once more. This pull request needs a merge commit, not a squash, so that the next merge-up starts from 6f1aebe.
The merge
The merged tree is the one of 4.9.x, byte for byte: #240 brings what #230, #236 and #238 already brought, and #242 is the backport of #241.
Git merges
tests/Algorithm/KeyRestrictionEnforcementTest.phpwithout a textual conflict, but the result declaresgetForbiddenOperations()twice. #240 and #236 each added it right aftergetForbiddenCombinations(), whose data sets differ between the two lines, so git sees two separate insertions. 4.9.x's side is kept withgit checkout HEAD -- tests/Algorithm/KeyRestrictionEnforcementTest.php.castor.phpand.github/workflows/ci.ymlmerge without a conflict: #241 and #242 make the same change.Checked locally, in
ghcr.io/spomky-labs/phpqa:8.4On the PHP files the merge touches (
castor.phpand the five test classes of #240):php -l, ECS and Rector are clean. The workflow audit is clean.