# Changelog

## Score

- CAI 65 → 67 (+2.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

## Lenses

- Code Health 77 → 72 (-4.6)
- Architecture 83 → 96 (+13.1)
- Maturity 50 → 54 (+4.0)
- Readiness 76 → 81 (+5.7)
- Security 89 → 85 (-4.3)

## Resolved (6)

- Ambiguous behavior for similar method names. `merge` returns a new array (functional style), while `mergeInto` likely modifies the array in place (imperative style) but lacks a return type in the signature provided (or returns void). This creates confusion about whether the operation is pure or side-effecting.
- Change coupling: Crap4j.php ↔ Facade.php (src/Report/Crap4j.php)
- Duplicate intent for generating the report directory structure. `CodeCoverage.getReport()` returns a `Directory` node representing the coverage report, while `Builder.build()` also constructs and returns a `Directory` node (likely the same structure) but requires additional inputs (`testResults`, `basePath`) that `CodeCoverage` already holds or manages. This suggests two entry points for the same logical operation (building the report tree).
- Duplicated block (9 lines × 2) (src/Serialization/Unserializer.php)
- Hotspot: src/Node/File.php (src/Node/File.php)
- Projects may be oversized for their cohesion

## New (28)

- BytecodeDumpParser.parse (cognitive 20) (src/StaticAnalysis/BytecodeDumpParser.php)
- BytecodeLines.compile (cognitive 16) (src/StaticAnalysis/BytecodeLines.php)
- Edited copies of one member (3 members, 14+ corresponding lines) (src/Data/ProcessedFunctionType.php)
- Edited copies of one member (3 members, 16+ corresponding lines) (src/StaticAnalysis/Visitor/CodeUnitFindingVisitor.php)
- Edited copies of one member (3 members, 17+ corresponding lines) (src/Node/File.php)
- Edited copies of one member (3 members, 28+ corresponding lines) (src/Report/Html/ClassView/Renderer/Dashboard.php)
- Edited copies of one member (3 members, 6+ corresponding lines) (src/StaticAnalysis/Value/Function_.php)
- Edited copies of one member (5 members, 11+ corresponding lines) (src/Node/Directory.php)
- Edited copy of a member (11 corresponding lines) (src/Report/Html/ClassView/Node/ClassNode.php)
- Edited copy of a member (11 corresponding lines) (src/Report/Html/ClassView/Node/ClassNode.php)
- Edited copy of a member (11 corresponding lines) (src/Report/Xml/Method.php)
- Edited copy of a member (122 corresponding lines) (src/Report/Html/Renderer/File.php)
- Edited copy of a member (15 corresponding lines) (src/Report/Html/ClassView/Node/ClassNode.php)
- Edited copy of a member (15 corresponding lines) (src/Report/Html/ClassView/Node/NamespaceNode.php)
- Edited copy of a member (16 corresponding lines) (src/Report/Html/ClassView/Renderer/Namespace_.php)
- Edited copy of a member (20 corresponding lines) (src/Report/Html/Renderer/Dashboard.php)
- Edited copy of a member (21 corresponding lines) (src/Node/File.php)
- Edited copy of a member (27 corresponding lines) (src/Report/Html/Facade.php)
- Edited copy of a member (46 corresponding lines) (src/Node/File.php)
- Edited copy of a member (62 corresponding lines) (src/Report/Html/ClassView/Renderer/Class_.php)
- …and 8 more

## Changes since last survey

- 63 commits — 62 feature/other, 1 fixes

## By area

- (root) — 16 commits
- tools/.phpstan — 16 commits
- src/StaticAnalysis — 12 commits
- tests/tests — 7 commits
- (repo) — 6 commits
- src/CodeCoverage.php — 2 commits
- src/Report — 1 commit
- tests/_files — 1 commit
- tools/.php-cs-fixer — 1 commit
- tools/composer — 1 commit

## Notable commits

- fix: Fix errors reported by PHPStan
- change: Add CodeCoverage::warmCache() to warm the cache for the static analysis that is used for the driver
- change: Add Driver::linesDependOnCompilation()
- change: Add source analyser that determines executable lines from bytecode
- change: Add tests for writing source code to XML report
- change: Allow results of source analysers that analyse code differently to be cached separately
- change: Bump
- change: Close gaps in code coverage of determining executable lines from bytecode
- change: Closes #1372
- change: Closes #1379
- change: Closes #1380
- change: Compile only the files that are about to be analysed to determine their executable lines from bytecode
- change: Create analysers that determine executable lines from bytecode in Registry
- change: Determine executable lines from OPcache's dump of unoptimized bytecode with line numbers
- change: Determine executable lines from bytecode when the driver's lines do not depend on compilation or code is compiled like for bytecode analysis
- change: Determine which files do not have a cached result of their analysis
- change: Do not consider executable lines to be determinable from bytecode when the bytecode of a file cannot be analysed
- change: Do not count the check that a function whose return type is never does not return as executable
- change: Do not count the implicit return of a function that returns by reference as executable
- change: Do not use deprecated expectExceptionMessage()
- …and 43 more

## Architecture

- Unchanged — 0 containers · 1 contexts · 0 edges
