Skip to content

Commit a17b6a3

Browse files
committed
Fixed interface plugin linemarker
1 parent a9c7c86 commit a17b6a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/com/magento/idea/magento2plugin/linemarker/php/PluginTargetLineMarkerProvider.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ List<PhpClass> getTargetClassesForPlugin(@NotNull PhpClass phpClass, @NotNull St
9292
for (String targetClassName : targetClassNames) {
9393
Collection<PhpClass> targets = phpIndex.getClassesByFQN(targetClassName);
9494

95+
if (targets.isEmpty()) {
96+
targets = phpIndex.getInterfacesByFQN(targetClassName);
97+
}
98+
9599
results.addAll(targets);
96100
}
97101

0 commit comments

Comments
 (0)