diff --git a/.gitignore b/.gitignore index 88e99d5..cb42441 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -vendor -composer.lock \ No newline at end of file +/.idea/ +/vendor/ +/composer.lock \ No newline at end of file diff --git a/src/ClassFinder.php b/src/ClassFinder.php index 2f37a40..f0ff4a9 100644 --- a/src/ClassFinder.php +++ b/src/ClassFinder.php @@ -155,6 +155,10 @@ protected function searchClassMap() { foreach ($this->composer->getClassMap() as $fqcn => $file) { + if (!is_string($file)){ + continue; + } + if (Str::s($fqcn)->is($this->namespace.'*')) { $this->foundClasses[realpath($file)] = $fqcn;