Skip to content

[#100] - Release update for cphalcon 5.24.1 and phalcon/phalcon 6.0.0 - #122

Merged
niden merged 17 commits into
masterfrom
T100-release-update-cphalcon-5.24-phalcon-6.0
Nov 28, 2026
Merged

niden merged 17 commits into
masterfrom
T100-release-update-cphalcon-5.24-phalcon-6.0

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 uses the releases cphalcon 5.24.1 and phalcon/phalcon 6.0.0. They are the first releases with all the fixes that crest needs. The PIE build of cphalcon 5.24.0 does not have three of them.

  • crest new: a v5 project requires ext-phalcon ^5.24.1 (it was ^5.18), also in the pie install line of the Dockerfile. A v6 project requires phalcon/phalcon ^6.0 (it was ^6.0@RC).
  • crest new, v6: composer.json has no phalcon/phql or phalcon/volt line, because phalcon/phalcon 6.0.0 requires both. The placeholders {{ phql }} and {{ volt }} are removed from the stub project-composer. A copy of that stub that a project published before this change stops crest new before it writes a file (... has no value for {{ phql }}). This is the same as for each unknown placeholder.
  • composer.json of crest: phalcon/phalcon ^6.0 (it was the branch v6.0.x-dev). phalcon/phql and phalcon/volt are removed, and minimum-stability is stable. The lock changes only phalcon/phalcon (v6.0.0) and phalcon/phql (v1.0.0).
  • CI: PHALCON_CONSTRAINT is ^5.24.1. The 9 database tests that skipped with cphalcon before 5.24.0 now run in the v5 cells. The 5 skip helpers are removed.
  • ModelRelations: the check for a key with no referenced columns stays. Crest does not check the Phalcon version when it runs, so an existing project on an older Phalcon still gets null there. Only its comment changes.
  • Docs (README, the guide): ^5.24.1, and no RC or dev branch of a Phalcon package. The PHQL notes for v6 are removed.
  • Docs, CHANGELOG and comments: the fixes of the SQLite keys ([BUG]: SQLite describeReferences() gives one key for each column of a composite foreign key cphalcon#17814, [BUG]: SQLite describeReferences() gives null referenced columns for a key with no referenced columns cphalcon#17815) and of the PostgreSQL referenced schema ([BUG]: PostgreSQL describeReferences() gives the database name as the referenced schema cphalcon#17816) come from cphalcon 5.24.1. The other fixes stay at 5.24.0: the PIE build of 5.24.0 has them.
  • Coverage: for now, the gate of a PR (resources/octocov.pr.yml) checks only current >= 95.0%. This PR removes covered lines, thus diff is below 0 against master. After the merge, the push to master stores the new report, and a follow-up PR puts back diff >= 0.

Checked locally (PHP 8.2, phalcon/phalcon 6.0.0): unit 2055, SQLite 224, MySQL 232, MariaDB 232, PostgreSQL 232, phpstan, phpcs, php-cs-fixer; Infection on all of src/: 4575 mutants, covered MSI 100%. The v5 path (cphalcon 5.24.1) runs only in CI.

Thanks

…with no phalcon/phql or phalcon/volt line (phalcon/phalcon brings them), and a stable minimum stability

Assisted-by: Claude Code
…, and a v6 project has no phalcon/phql or phalcon/volt line: phalcon/phalcon brings them

Assisted-by: Claude Code
…omposer.json with no phalcon/phql or phalcon/volt line

Assisted-by: Claude Code
…cphalcon before 5.24.0

Assisted-by: Claude Code
…roject with an older Phalcon

Assisted-by: Claude Code
Assisted-by: Claude Code
@niden niden self-assigned this Nov 28, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@niden niden changed the title [#100] - Release update for cphalcon 5.24.0 and phalcon/phalcon 6.0.0 [#100] - Release update for cphalcon 5.24.1 and phalcon/phalcon 6.0.0 Nov 28, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

…e and PostgreSQL keys

Assisted-by: Claude Code
…SQLite and PostgreSQL keys

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

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code Metrics Report

master (95923ab) T100-release-update-cphalcon-5.24-phalcon-6.0 (e026ae7) +/-
Coverage 99.8% 99.8% -0.1%
Test Execution Time 11s 12s +1s
Details
  |                     | master (95923ab) | T100-release-update-cphalcon-5.24-phalcon-6.0 |  +/-  |
  |                     |                  |                   (e026ae7)                   |       |
  |---------------------|------------------|-----------------------------------------------|-------|
- | Coverage            |            99.8% |                                         99.8% | -0.1% |
  |   Files             |               97 |                                            97 |     0 |
  |   Lines             |             4201 |                                          4197 |    -4 |
- |   Covered           |             4195 |                                          4191 |    -4 |
- | Test Execution Time |              11s |                                           12s |   +1s |

Code coverage of files in pull request scope (100.0% → 100.0%)

Files Coverage +/- Status
src/Command/NewCommand.php 100.0% 0.0% modified
src/Generator/ForeignKeys.php 100.0% 0.0% modified
src/Generator/ModelRelations.php 100.0% 0.0% modified
src/Generator/Project/AdrSkeleton.php 100.0% 0.0% modified
src/Generator/Project/MvcSkeleton.php 100.0% 0.0% modified

Reported by octocov

@niden
niden merged commit 057ab1e into master Nov 28, 2026
40 checks passed
@niden
niden deleted the T100-release-update-cphalcon-5.24-phalcon-6.0 branch November 28, 2026 22:00
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