File tree 1 file changed +6
-1
lines changed
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
218
218
PathResolver::class
219
219
);
220
220
$ 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
+
221
226
return IndexAgentBuilder::create ($ indexPath , $ this ->projectRoot ($ container ))
222
227
/** @phpstan-ignore-next-line */
223
228
->setExcludePatterns ($ container ->get (self ::SERVICE_INDEXER_EXCLUDE_PATTERNS ))
@@ -226,7 +231,7 @@ private function registerModel(ContainerBuilder $container): void
226
231
/** @phpstan-ignore-next-line */
227
232
->setSupportedExtensions ($ container ->parameter (self ::PARAM_SUPPORTED_EXTENSIONS )->value ())
228
233
->setFollowSymlinks ($ container ->parameter (self ::PARAM_INDEXER_FOLLOW_SYMLINKS )->bool ())
229
- ->setStubPaths ($ container -> getParameter ( self :: PARAM_STUB_PATHS ) );
234
+ ->setStubPaths ($ stubPaths );
230
235
});
231
236
232
237
$ container ->register (Indexer::class, function (Container $ container ) {
You can’t perform that action at this time.
0 commit comments