Skip to content

Make Parser final, add Infection and the 3.0.0 changelog - #59

Merged
niden merged 4 commits into
3.0.xfrom
T58-parser-final
Dec 4, 2026
Merged

niden merged 4 commits into
3.0.xfrom
T58-parser-final

Conversation

@niden

@niden niden commented Dec 4, 2026

Copy link
Copy Markdown
Member

Hello!

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG

Small description of change:

  • Phalcon\Cop\Parser is final. The five helper methods are private.
  • PHPUnit 12.5: #[DataProvider] attributes in place of @dataProvider docblocks, and the 12.5 configuration (<source> filter, cacheDirectory). Before this change, the suite had 4 errors and did not collect coverage.
  • Infection: resources/infection.json5 with minMsi 100 and minCoveredMsi 100, a composer infection script and a CI job.
  • getParamWithEqual() returns the array directly. The behavior is the same. This removes an ArrayOneItem mutant that no test can detect, because the array always has one item.
  • CHANGELOG.md: the 3.0.0 section.
  • composer.json: branch-alias dev-master: 3.0.x-dev.

Results in the PHP 8.3 container: 46 tests pass, line coverage 100% (69/69), Infection MSI 100% and covered MSI 100% (107 mutants). PHPCS, PHPStan and PHP CS Fixer pass.

Thanks

@niden niden added the enhancement New feature or request label Dec 4, 2026
@niden niden self-assigned this Dec 4, 2026
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Code Metrics Report

master (4b6c04c) T58-parser-final (f779a6e) +/-
Coverage 100.0% 100.0% 0.0%
Test Execution Time 1s 1s 0s
Details
  |                     | master (4b6c04c) | T58-parser-final (f779a6e) | +/-  |
  |---------------------|------------------|----------------------------|------|
  | Coverage            |           100.0% |                     100.0% | 0.0% |
  |   Files             |                1 |                          1 |    0 |
  |   Lines             |               71 |                         69 |   -2 |
- |   Covered           |               71 |                         69 |   -2 |
  | Test Execution Time |               1s |                         1s |   0s |

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

Files Coverage +/- Patch Coverage Status
src/Parser.php 100.0% 0.0% 100.0% modified

Reported by octocov

@niden
niden merged commit 2a7be7c into 3.0.x Dec 4, 2026
14 checks passed
@niden
niden deleted the T58-parser-final branch December 4, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant