diff --git a/src/Command/ScaffoldThemeCommand.php b/src/Command/ScaffoldThemeCommand.php index 74873ec..fe75e59 100644 --- a/src/Command/ScaffoldThemeCommand.php +++ b/src/Command/ScaffoldThemeCommand.php @@ -217,7 +217,7 @@ protected function generateTheme( $composer, $io, $themeName, $themePath, $theme try { $composerJson = $composerFile->read(); - $composerJson['autoload']['psr-4'][$themeNamespace."\\"] = str_replace( '//', '/', $themePath.'/inc/' ); + $composerJson['autoload']['psr-4'][$themeNamespace."\\"] = rtrim( $themePath, '/' ) .'/inc/'; $composerFile->write( $composerJson );