You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in which if there are value it will use that, case is when the value is an uppercased letter, it will be compared to lowercased $transitions array from before
Our specific use case is because Laravel has Rule::enum for validation, already but in need to be backed, meanwhile, the transition is having this issue, for now my alternative is using Rule::isEnum this package provide,
The text was updated successfully, but these errors were encountered:
Given I have this enum
Even the default
allowedTransitions
won't work, this is because when doint the comparison, specifically onenumhancer/src/Helpers/EnumState.php
Lines 46 to 57 in cbf1230
the
array_change_key_case
make the key to be lowercased, meanwhilethe
$transitions[EnumValue::value($currentTransition)]
hasenumhancer/src/Helpers/EnumValue.php
Lines 13 to 20 in cbf1230
in which if there are
value
it will use that, case is when the value is an uppercased letter, it will be compared to lowercased$transitions
array from beforeOur specific use case is because Laravel has
Rule::enum
for validation, already but in need to be backed, meanwhile, the transition is having this issue, for now my alternative is usingRule::isEnum
this package provide,The text was updated successfully, but these errors were encountered: