diff --git a/app/Enumerations/BaseEnumeration.php b/app/Enumerations/BaseEnumeration.php index 356ac390..e7781522 100644 --- a/app/Enumerations/BaseEnumeration.php +++ b/app/Enumerations/BaseEnumeration.php @@ -47,7 +47,7 @@ abstract class BaseEnumeration public static function push($key, $translation, $overwrite = false) { // item exists and we do not want to overwrite items - if (!$overwrite && isset(self::$items[get_called_class()][$key])) { + if (!$overwrite && !is_null($key) && isset(self::$items[get_called_class()][$key])) { throw new EnumerationExistsException(get_called_class() . ': ' . $key . ' already in ' . $translation); }