doctrine/collections
61.1
Adequate · 17 November 2026
1.6k
lines of production code
PHP
primary language
5
measurements over time
What this system is
Features
Initial project scaffolding and configuration for Doctrine Collections
This change establishes the foundational structure for the Doctrine Collections library. It introduces essential configuration files including \.doctrine-project.json\ for versioning metadata, \.gitattributes\ and \.gitignore\ for repository hygiene, and build tool configurations for PHPUnit, PHPStan, and PHPCS. It also adds standard documentation files such as \README.md\, \CONTRIBUTING.md\, \LICENSE\, \SECURITY.md\, and a comprehensive \UPGRADE.md\ guide detailing breaking changes and deprecations across versions 2.0 through 3.1. Additionally, it removes the legacy \Collection.php\ class, marking the transition from the initial codebase to the modern, namespaced implementation.
(repo-wide) · high confidence
Behavioural changes
Deprecate legacy ordering types and remove no-op accessRawFieldValues parameter
The \accessRawFieldValues\ parameter in \Criteria::create()\ and the \Criteria\ constructor is deprecated and treated as a no-op; users should remove it. The legacy \Order\ enum is deprecated in favor of the native \SortDirection\ enum, and \Criteria::orderings()\ is deprecated in favor of \getOrderings()\ which now returns \SortDirection\ values. Additionally, \ExpressionBuilder\ now includes an \isNotNull()\ method for building NOT NULL comparisons.
src · high confidence
Expression visitor now uses reflection-based field access
The \ClosureExpressionVisitor\ in \src/Expr\ has transitioned to using reflection-based, direct field access (via \ReflectionProperty::getRawValue\) to retrieve object field values, replacing the previous mechanism. This change is accompanied by the removal of the deprecated \accessRawFieldValues\ constructor parameter, which is now a no-op, and the adoption of modern PHP features such as \readonly\ classes, the \\#\[Override\]\ attribute, and native array functions (\array\_all\, \array\_any\) for evaluating composite expressions.
src/Expr · high confidence
Test coverage
Added comprehensive test suite for collections and lazy initialization; Added static analysis test fixtures for Collection interface; Added unit tests for Expression classes.
Dependencies
Update dependencies and require PHP 8.4
The project now requires PHP 8.4 and has updated its development dependencies, including upgrading PHPUnit to version 12.4, PHPStan to 2.1.30, and Doctrine Coding Standard to 14. The main library also depends on doctrine/deprecations ^1 and symfony/polyfill-php86 ^1.36.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 60.7 → 61.1 (+0.4)
- Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 97.5 → 97.0 (-0.5)
- Architecture 93.0 → 92.7 (-0.3)
- Maturity 39.5 → 40.5 (+1.0)
- Readiness 74.3 → 74.1 (-0.2)
- Security 77.3 → 77.3 (0.0)
Resolved (1)
- Off-boarding risk: anonymized user #1
New (1)
- Off-boarding risk: anonymized user #1
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
doctrine/collections was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 17 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 9cc6668eac8bea1b5f2f3d35e73b0e9370836d0c — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.85+preprod-eba6548ac50f.