summaryrefslogtreecommitdiff
path: root/phpinspect-imports.el
diff options
context:
space:
mode:
authorHugo Thunnissen <devel@hugot.nl>2024-08-17 00:11:27 +0200
committerHugo Thunnissen <devel@hugot.nl>2024-08-17 00:11:27 +0200
commitbe2f8dada59744be2faa3e62ffb97f6beaae592a (patch)
treee36d3594e230cacd9dece2256401dda444efb8d9 /phpinspect-imports.el
parent5032ae74ff6f44912ca0ece057325b3ae2a1716e (diff)
Add test for phpinspect-fix-imports
Diffstat (limited to 'phpinspect-imports.el')
-rw-r--r--phpinspect-imports.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpinspect-imports.el b/phpinspect-imports.el
index 81ba8ba..83b658c 100644
--- a/phpinspect-imports.el
+++ b/phpinspect-imports.el
@@ -199,9 +199,7 @@ that there are import (\"use\") statements for them."
tree nil (phpinspect-buffer-location-resolver buffer)))
(classes (alist-get 'classes index))
(imports (alist-get 'imports index))
- (project (phpinspect--cache-get-project-create
- (phpinspect--get-or-create-global-cache)
- (phpinspect-current-project-root)))
+ (project (phpinspect-buffer-project buffer))
(used-types (alist-get 'used-types index)))
(phpinspect-add-use-statements-for-missing-types