Skip to content

Commit ac3be74

Browse files
authored
Improve ClassLoader support on Windows (#136)
See #72 (comment)
1 parent b693175 commit ac3be74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Support/ClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class_alias($alias, $class);
158158
*/
159159
protected function resolvePath(string $path): string
160160
{
161-
if (!Str::startsWith($path, ['/', '\\'])) {
161+
if (!Str::startsWith($path, ['/', '\\', $this->basePath . DIRECTORY_SEPARATOR])) {
162162
$path = $this->basePath . DIRECTORY_SEPARATOR . $path;
163163
}
164164
return $path;

0 commit comments

Comments
 (0)