diff --git a/src/Formatter.php b/src/Formatter.php index d7af129..2c7d6b0 100644 --- a/src/Formatter.php +++ b/src/Formatter.php @@ -168,7 +168,9 @@ public static function excludePostNominals($values) */ public static function nameCase($name = '', array $options = []): string { - if ($name == '') return $name; + if ($name == '' || $name == NULL) { + return $name; + } self::setOptions($options);