Skip to content

refactor(collections)!: rename namespace to XPHP\Collections#2

Merged
math3usmartins merged 2 commits into
mainfrom
0.1.x
Jul 20, 2026
Merged

refactor(collections)!: rename namespace to XPHP\Collections#2
math3usmartins merged 2 commits into
mainfrom
0.1.x

Conversation

@math3usmartins

Copy link
Copy Markdown
Member

No description provided.

math3usmartins and others added 2 commits July 20, 2026 21:00
Align the Composer package name (and the README title) with the plural
GitHub repository slug, xphp-lang/collections. The PHP namespace
XPHP\Collection is deliberately kept singular -- it is independent of the
package name and renaming it would be a breaking API change. Metadata only;
composer validate passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pluralize the PHP namespace root XPHP\Collection -> XPHP\Collections across
src, tests, examples, the composer.json autoload prefixes, and ADR-0006/0008,
aligning it with the plural package name and repository (xphp-lang/collections).
The root class/interface `Collection` stays singular; only the namespace
segment changes, and PSR-4 still maps the prefix to src/ + build/ (no directory
move). Clean rebuild is green: check, 89 unit tests, PHPStan level 9, 100% MSI,
demo.

BREAKING CHANGE: consumers must update `use XPHP\Collection\...` to
`use XPHP\Collections\...`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@math3usmartins
math3usmartins merged commit 9c100c0 into main Jul 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant