From ff695d5ee42f5bdaf47899ff5991fac5f5350891 Mon Sep 17 00:00:00 2001 From: Nicolas Juen Date: Wed, 20 May 2020 18:31:41 +0200 Subject: [PATCH] Unify modifications from scaffold-plugins --- src/Command/ScaffoldThemeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );