Skip to content
CAI
Software that uses CAICheck a score

sebastianbergmann/object-enumerator

63.5

Adequate · 17 November 2026

447

lines of production code

PHP

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Behavioural changes

1 commit (0 fixes) modifying tools

A change to existing behaviour in tools — 1 commit, 4 files: “Update dependency php-cs-fixer/shim to ^3.95.31”. Also in this area: 3 commits (0 fixes) modifying tools.

tools/.php-cs-fixer · medium confidence · unverified

136 commits (0 fixes) modifying tools

A change to existing behaviour in tools — 136 commits, 4 files: “Update tools”; “Use PHPStan instead of Psalm”; “Update tools (and manage Composer through Phive)”; and 4 more.

tools · medium confidence · unverified

Modernized build automation and developer tooling

The project has replaced Travis CI with GitHub Actions and switched from the legacy PHP CS Fixer to the modern PHP-CS-Fixer, accompanied by a comprehensive configuration file (.php-cs-fixer.dist.php) that enforces stricter coding standards. Static analysis has moved from Psalm to PHPStan, configured via phpstan.neon to run at level 10 with strict rules. The build process now uses Phive to manage tool binaries (like PHPStan and PHP-CS-Fixer) in the tools/ directory, and Composer is managed via a local wrapper. Additionally, Renovate is configured for automated dependency updates, and archive exports are now controlled via .gitattributes to exclude development artifacts.

(repo-wide) · high confidence

New script to extract release notes from changelog

A new PHP script, \build/scripts/extract-release-notes.php\, has been added to the build tooling. This utility reads the \ChangeLog.md\ file and extracts the section corresponding to a specific version tag provided as an argument. It is designed to isolate release notes for a given version, supporting the automated creation of release artifacts when tags are pushed.

build · high confidence

Refactored object enumeration to handle cyclic references and improve type safety

The Enumerator class has been refactored to strictly handle cyclic references and improve robustness. The public API now uses strict typing (declare(strict\_types=1)) and type hints for parameters and return values, ensuring predictable behavior. Internally, the enumeration logic was rewritten to use a private recursive helper method that processes arrays and objects without relying on array\_merge, preventing potential issues with array index reordering. The change also ensures that modifications made by the RecursionContext do not interfere with the traversal process by working on a copy of the array before marking it as processed, thereby fixing infinite recursion bugs for self-referencing structures.

src · high confidence

Test coverage

Added test fixtures for property hooks and inheritance scenarios; Added unit tests for the Enumerator class; Removed legacy PHPUnit 4 test suite for Enumerator.

Dependencies

PHPStan static analysis tooling upgraded to version 2.2.16 with strict rules

The local PHP development environment in tools/.phpstan now uses PHPStan 2.2.16, upgraded from previous 2.1.x and early 2.2.x versions. This update brings stricter static analysis capabilities and includes the phpstan-strict-rules extension (2.0.12) and ergebnis/phpstan-rules (2.14.0) to enforce higher code quality standards during development. Also in this area: 1 commit (0 fixes) modifying tools, tools/.phpstan/vendor/phpstan/phpstan-strict-rules; 2 commits (0 fixes) modifying tools, tools/.phpstan/vendor/ergebnis/phpstan-rules.

tools/.phpstan · medium confidence · unverified

Upgrade to PHP 8.4 and PHPUnit 13 with isolated PHPStan tooling

The project now requires PHP 8.4 and upgrades PHPUnit to version 13.3.6, dropping support for older PHP versions. Additionally, a new isolated PHPStan tooling setup is introduced under \tools/.phpstan/\, bundling PHPStan 2.2.16 along with the \phpstan-strict-rules\ and \ergebnis/phpstan-rules\ extensions to provide stricter static analysis capabilities separate from the main project dependencies.

(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 63.5 → 63.5 (0.0)
  • Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 100.0 → 100.0 (0.0)
  • Architecture 69.0 → 69.0 (0.0)
  • Maturity 48.9 → 48.9 (0.0)
  • Readiness 79.1 → 79.1 (0.0)
  • Security 85.0 → 85.0 (0.0)

Findings

  • No change — the same findings as the prior survey.

Changes since last survey

  • 14 commits — 14 feature/other, 0 fixes

By area

  • tools/.phpstan — 6 commits
  • (repo) — 3 commits
  • (root) — 2 commits
  • tools/.php-cs-fixer — 2 commits
  • tools/composer — 1 commit

Notable commits

  • change: Manage PHP-CS-Fixer with Composer instead of Phive
  • change: Merge branch '7.0'
  • change: Merge branch '7.0'
  • change: Merge branch '7.0'
  • change: Remove stale entry
  • change: Update dependency ergebnis/phpstan-rules to ^2.17.1
  • change: Update dependency ergebnis/phpstan-rules to ^2.17.1
  • change: Update dependency php-cs-fixer/shim to ^3.95.31
  • change: Update dependency phpstan/phpstan to ^2.3.6
  • change: Update dependency phpstan/phpstan-phpunit to ^2.1.2
  • change: Update dependency phpunit/phpunit to ^13.4.7
  • change: Update tools
  • change: Use phpstan/phpstan-deprecation-rules
  • change: Use phpstan/phpstan-phpunit

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

sebastianbergmann/object-enumerator 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 d458e94aeec8cc4439306982e5aecf0086bd90d0 — 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.84+preprod-d645ca9bbedd.