Skip to content

Commit 5cd21ae

Browse files
Changed code for PHP 5.3 support
1 parent 8750a80 commit 5cd21ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Enum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static function search($value)
173173
*/
174174
public static function findValue($key)
175175
{
176-
return @static::toArray()[$key] ?: null;
176+
return isset(static::toArray()[$key]) ? static::toArray()[$key] : null;
177177
}
178178

179179
/**

0 commit comments

Comments
 (0)