Skip to content

Add enum class rename rules for CakePHP 6.0#393

Draft
dereuromark wants to merge 1 commit into6.xfrom
enum-namespace-convention
Draft

Add enum class rename rules for CakePHP 6.0#393
dereuromark wants to merge 1 commit into6.xfrom
enum-namespace-convention

Conversation

@dereuromark
Copy link
Member

@dereuromark dereuromark commented Mar 17, 2026

Summary

Adds Rector rules to automatically rename enum classes that were moved to the Enum namespace without the Enum suffix.

Renames

Old New
Cake\Database\DriverFeatureEnum Cake\Database\Enum\DriverFeature
Cake\Http\Cookie\SameSiteEnum Cake\Http\Cookie\Enum\SameSite

Related

Support automatic renaming of enums that were moved to Enum namespace:
- `DriverFeatureEnum` -> `Database\Enum\DriverFeature`
- `SameSiteEnum` -> `Http\Cookie\Enum\SameSite`
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