# Changelog

## Score

- CAI 66 → 63 (-2.9)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

## Lenses

- Code Health 97 → 98 (+0.5)
- Architecture 100 → 99 (-0.5)
- Maturity 54 → 54 (+0.0)
- Readiness 69 → 69 (+0.0)
- Security 68 → 56 (-11.4)
- Performance 100 → 100 (+0.0)

## Resolved (4)

- AttributeMetadataFactory.inferNormalizerByType (cyclomatic 18) (src/Metadata/AttributeMetadataFactory.php)
- Duplicated block (13 lines × 2) (src/Metadata/AttributeMetadataFactory.php)
- Duplicated block (14 lines × 2) (src/Normalizer/ArrayShapeNormalizer.php)
- Inconsistent naming for PSR-16 vs PSR-6 cache implementations. The library provides distinct classes for PSR-16 (`CacheInterface`) and PSR-6 (`CacheItemPoolInterface`) for both the CipherKeyStore and MetadataFactory. While technically distinct interfaces, the naming convention `Psr16...` vs `Psr6...` is consistent within each domain, but the API surface is fragmented. A more consistent approach might be a single `CacheStoreDecorator` and `CacheMetadataFactory` that accept a unified cache interface or use a factory pattern, reducing the number of concrete classes exposed to the user.

## New (1)

- Duplicated block (12 lines × 2) (src/Normalizer/ArrayShapeNormalizer.php)

## Changes since last survey

- 24 commits — 22 feature/other, 2 fixes

## By area

- tests/Unit — 10 commits
- (repo) — 9 commits
- (root) — 3 commits
- docs/normalizer.md — 1 commit
- src/Metadata — 1 commit

## Notable commits

- fix: Fix normalizer examples in the readme
- fix: Merge pull request #244 from patchlevel/normalizer-fixes-1x
- change: Cover the child winning over its parent when merging metadata
- change: Document which array shape keys are converted
- change: Don't use the ObjectMapNormalizer as a class normalizer
- change: Drop the extras merge from mergeMetadata
- change: Infer normalizers for nullable collection items
- change: Keep keys without a normalizer in array shapes
- change: Keep keys without a normalizer in array shapes
- change: Let inferNormalizerByType unwrap collection and shape items itself
- change: Let the child class win when merging inherited metadata
- change: Let the readme normalizer example handle null
- change: Merge branch '2.0.x' into 1.24.x-merge-up-into-2.0.x_mxZsb44N
- change: Merge branch '2.1.x' into 2.0.x-merge-up-into-2.1.x
- change: Merge pull request #239 from patchlevel/object-normalizer-class-normalizer
- change: Merge pull request #240 from patchlevel/enum-class-normalizer
- change: Merge pull request #241 from patchlevel/array-shape-keep-unmapped-keys
- change: Merge pull request #243 from patchlevel/object-map-class-normalizer
- change: Merge pull request #245 from patchlevel/1.24.x-merge-up-into-2.0.x_mxZsb44N
- change: Merge pull request #247 from patchlevel/2.1.x-merge-up-into-2.2.x_FG8rfleA
- …and 4 more
