diff --git a/src/Options.php b/src/Options.php index 0abcb3c..3700650 100644 --- a/src/Options.php +++ b/src/Options.php @@ -45,7 +45,7 @@ public static function stringOptions(Closure $callback = null, string $glue = '\ if (str_contains($name, '_')) { // Snake case $words = explode('_', $name); - } else if (strtoupper($name) === $name) { + } elseif (strtoupper($name) === $name) { // If the entire name is uppercase without underscores, it's a single word $words = [$name]; } else {