Skip to content

Commit 771ba36

Browse files
committed
fix: wip
1 parent 028f7cd commit 771ba36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/restify-boost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
*/
105105
'paths' => [
106106
'primary' => env('RESTIFY_DOCS_PATH', base_path('vendor/binaryk/laravel-restify/docs-v2/content/en')),
107-
'fallback' => base_path('src/Docs/en'),
107+
'fallback' => __DIR__.'/../src/Docs/en',
108108
],
109109

110110
/*

src/Mcp/Tools/SearchRestifyDocs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected function getDocumentationPaths(): array
114114

115115
// Scan for markdown files in documentation directories
116116
foreach ([$primaryPath, $fallbackPath] as $basePath) {
117-
if (is_dir($basePath)) {
117+
if ($basePath && is_string($basePath) && is_dir($basePath)) {
118118
$paths = array_merge($paths, $this->scanDirectoryForMarkdown($basePath));
119119
}
120120
}

0 commit comments

Comments
 (0)