Skip to content

Release PHP EnumEx 3.0.0 - #23

Merged
gachakra merged 22 commits into
mainfrom
release/v3.0.0
Dec 3, 2026
Merged

gachakra merged 22 commits into
mainfrom
release/v3.0.0

Conversation

@gachakra

@gachakra gachakra commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Summary

Prepare the reviewed v3 API for release. The implementation is already integrated into main; this PR finalizes release documentation and ADR status, rather than merging an old development branch.

Breaking changes and migration

  • Move v2 Notonza\PhpEnumEx\EnumCase and EnumCollection to Extension\Case\EnumCase and Extension\Collection\EnumCollection, respectively. No namespace compatibility aliases. Review FQCNs, imports, PHPDoc and persisted class references.
  • Native canonicalName() / debugOutput() / listDebugOutput() become qualifiedName() / qualifiedInfo() / listQualifiedInfo(). Instance collection elements() becomes nameToElement(); native trait elements() / valueToElement() become nameToCase() / valueToCase(). Collection valueToElement() remains.
  • Review downstream subclass declarations and native trait method collisions, including new collection emptiness methods. Historical Class-based methods remain, but nine new case-insensitive method names can shadow constant shortcuts; use explicit of() lookup for affected names.
  • EnumComposite and its policies are new; native serialization is unsupported. PHP requirement remains ^8.4, package name and PSR-4 root unchanged.

Release preparation

  • README installs ^3.0 and links to the v2.0.0 README for existing applications; explicit migration instructions. Preserve verified commit-pinned runnable examples.
  • Mark the reviewed implemented scope of ADRs 0009–0011 Accepted and update ADR 0012 for v3. Preserve earlier discussion as historical context; ADR 0008 and deferred concepts remain proposals, not commitments.
  • No PHP source, dependency, CI or Docker changes in this release PR.

Validation

This PR prepares v3.0.0. The installation constraint is intended for the published release; it will not resolve to v3 until publication. No tag or release is created by opening this PR.

@gachakra gachakra left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independently reviewed the requested release target 89faf675503a1dc797a1e6bd084dfdd3aeb91f3d against 22ef06cf4ad158509ffece0a950aad75466b06ee. No actionable findings or release blockers.

  • Release and migration. I compared the public method inventory with the published v2.0.0 tag. The migration guide accounts for the native namespace moves and removals or renames, including the distinction between collection elements and native trait cases. It explains inherited method collisions and links to the Class-based shortcut migration. The existing new self() factory contracts remain accurate. Packagist still lists v2.0.0 as the latest stable release and GitHub has no v3 tag at review time. The public ^3.0 install remains a post-publication check. Packagist metadata
  • README and references. The two opening examples and the three short core examples produced the documented results on PHP 8.4 and 8.5. I linted 52 PHP fences and ran 15 contextual assertion groups on both versions, using the stated enum definitions or linked fixtures where needed. Seven Mermaid blocks parsed. I checked 205 repository link and anchor occurrences and followed 61 relative links within the pinned documentation revision. I found no lost contract in the move to the API and development pages. The Git and Composer archives contain both READMEs and the expected package files. I also installed the release ZIP in a clean consumer using local Composer metadata for 3.0.0 and exercised the v3 autoloader.
  • ADRs and policy. The ADR status changes match the reviewed v3 implementations, with deferred work still identified as such. The README scope, owner-approval requirement, and link-reporting rule in AGENTS.md are consistent with the documentation organization.
  • Verification. PHP 8.4.28 and 8.5.13 each passed 369 PHPUnit tests with 1,577 assertions, 25 executable examples, PHPStan 2.3.7 CI checks, PHP lint, Composer metadata/platform/strict PSR-4 checks, and archive verification. The selection fixture reported its 13 expected diagnostics. The hosted PHP 8.4, PHP 8.5, and Docker jobs all passed on the reviewed commit. GitHub Actions run

@gachakra

gachakra commented Dec 3, 2026

Copy link
Copy Markdown
Owner Author

123

@gachakra
gachakra merged commit 881c838 into main Dec 3, 2026
3 checks 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