Skip to content

Commit 3e3549c

Browse files
author
Igor Chepurnoy
committed
Update BaseEnum.php
1 parent f622438 commit 3e3549c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers/BaseEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static function getLabel($value)
142142
if (isset($list[$value])) {
143143
return \Yii::t('enum', $list[$value]);
144144
}
145-
return false;
145+
return null;
146146
}
147147

148148
/**
@@ -254,4 +254,4 @@ public static function isValidValue($value)
254254

255255
return array_key_exists($value, $constants);
256256
}
257-
}
257+
}

0 commit comments

Comments
 (0)