File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,11 @@ private function registerModel(ContainerBuilder $container): void
218218 PathResolver::class
219219 );
220220 $ indexPath = $ resolver ->resolve ($ container ->parameter (self ::PARAM_INDEX_PATH )->string ());
221+
222+ /** @var array<string> $stubPaths */
223+ $ stubPaths = $ container ->parameter (self ::PARAM_STUB_PATHS )->value ();
224+ $ stubPaths = array_map (fn (string $ path ): string => $ resolver ->resolve ($ path ), $ stubPaths );
225+
221226 return IndexAgentBuilder::create ($ indexPath , $ this ->projectRoot ($ container ))
222227 /** @phpstan-ignore-next-line */
223228 ->setExcludePatterns ($ container ->get (self ::SERVICE_INDEXER_EXCLUDE_PATTERNS ))
@@ -226,7 +231,7 @@ private function registerModel(ContainerBuilder $container): void
226231 /** @phpstan-ignore-next-line */
227232 ->setSupportedExtensions ($ container ->parameter (self ::PARAM_SUPPORTED_EXTENSIONS )->value ())
228233 ->setFollowSymlinks ($ container ->parameter (self ::PARAM_INDEXER_FOLLOW_SYMLINKS )->bool ())
229- ->setStubPaths ($ container -> getParameter ( self :: PARAM_STUB_PATHS ) );
234+ ->setStubPaths ($ stubPaths );
230235 });
231236
232237 $ container ->register (Indexer::class, function (Container $ container ) {
You can’t perform that action at this time.
0 commit comments