Skip to content

Conversation

@spawnia
Copy link
Collaborator

@spawnia spawnia commented Aug 12, 2025

  • Added or updated tests
  • Added or updated the README.md
  • Detailed changes in the CHANGELOG.md unreleased section

Related Issue/Intent

Simplifies how Enum::fromKey is reimplemented when PHP 8.3 is available and thus dynamic class constant fetch can be used.

Changes

When using PHP 8.3 or newer, the conversion result will be simplified.

Breaking changes

None, backwards compatibility with older PHP versions is given.

@spawnia spawnia force-pushed the simplify-to-native-enum-from-key branch from 3c5b91e to c4c3c1e Compare August 12, 2025 08:34
@spawnia spawnia merged commit e4d9275 into master Aug 12, 2025
19 of 20 checks passed
@spawnia spawnia deleted the simplify-to-native-enum-from-key branch August 12, 2025 08:35
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.

2 participants