Skip to content

Commit 1bc56b8

Browse files
committed
Fix failing tests
1 parent 17a40fa commit 1bc56b8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib/items/RouteData.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,12 @@ public function __construct(
209209
}
210210
$this->moduleList = $modulesPath;
211211

212-
$this->prefixSettings = [
213-
'namespace' => 'app\\' . implode('\\', $parts) . '\\controllers',
214-
'path' => '@app/' . implode('/', $modulesPathSection) . '/controllers'
215-
];
212+
if ($parts) {
213+
$this->prefixSettings = [
214+
'namespace' => 'app\\' . implode('\\', $parts) . '\\controllers',
215+
'path' => '@app/' . implode('/', $modulesPathSection) . '/controllers'
216+
];
217+
}
216218
}
217219

218220
parent::__construct($config);

0 commit comments

Comments
 (0)