Skip to content

Commit ec8bd33

Browse files
author
Stiven Katuuk
committed
refactor(action): renaming is value are enum method to is value an enum
1 parent 6c873a5 commit ec8bd33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Actions/ResolveForPropertyValueAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ public static function execute(mixed $value): mixed
1818
/**
1919
* Give a fallback value if value not a backed enum
2020
*/
21-
if ($instance->isValueAreEnum($value)) {
21+
if ($instance->isValueAnEnum($value)) {
2222
return $value->value ?? $value->name;
2323
}
2424

2525
return $value;
2626
}
2727

28-
protected function isValueAreEnum($value): bool
28+
protected function isValueAnEnum($value): bool
2929
{
3030
if (! function_exists('enum_exists')){
3131
return false;

0 commit comments

Comments
 (0)