We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a57055c commit 55ecb5eCopy full SHA for 55ecb5e
src/Enum.php
@@ -174,8 +174,13 @@ public static function search($value)
174
public static function findValue($key)
175
{
176
$array = static::toArray();
177
+ $value = null;
178
- return (isset($array[$key])) ? $array[$key] : null;
179
+ if (isset($array[$key])) {
180
+ $value = $array[$key];
181
+ }
182
+
183
+ return $value;
184
}
185
186
/**
0 commit comments