Skip to content

Commit

Permalink
fix(autoload): Add File Name an NS
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Jul 10, 2024
1 parent 267baba commit eb4d5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webfiori/framework/autoload/AutoLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ public static function isValidNamespace(string $ns) {
}
private function createNSFromPath(string $filePath, string $className) {
$split = explode(DIRECTORY_SEPARATOR, $filePath);
$nsArr = [];
$nsArr = ['\\'.$className];
$currentNs = '';
foreach ($split as $str) {
if (self::isValidNamespace($str)) {
Expand Down

0 comments on commit eb4d5b9

Please sign in to comment.