File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
src/com/magento/idea/magento2uct/inspections/php/existence Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ protected void execute(
25
25
final PhpUse use ,
26
26
final boolean isInterface
27
27
) {
28
- if (VersionStateManager .getInstance (project ).isExists (use .getFQN ())) {
28
+ if (isInterface || VersionStateManager .getInstance (project ).isExists (use .getFQN ())) {
29
29
return ;
30
30
}
31
31
final String removedIn = VersionStateManager .getInstance (project ).getRemovedInVersion ();
@@ -34,18 +34,16 @@ protected void execute(
34
34
: SupportedIssue .IMPORTED_NON_EXISTENT_CLASS .getChangelogMessage (
35
35
use .getFQN (), removedIn );
36
36
37
- if (!isInterface ) {
38
- if (problemsHolder instanceof UctProblemsHolder ) {
39
- ((UctProblemsHolder ) problemsHolder ).setReservedErrorCode (
40
- SupportedIssue .IMPORTED_NON_EXISTENT_CLASS .getCode ()
41
- );
42
- }
43
- problemsHolder .registerProblem (
44
- use ,
45
- message ,
46
- ProblemHighlightType .ERROR
37
+ if (problemsHolder instanceof UctProblemsHolder ) {
38
+ ((UctProblemsHolder ) problemsHolder ).setReservedErrorCode (
39
+ SupportedIssue .IMPORTED_NON_EXISTENT_CLASS .getCode ()
47
40
);
48
41
}
42
+ problemsHolder .registerProblem (
43
+ use ,
44
+ message ,
45
+ ProblemHighlightType .ERROR
46
+ );
49
47
}
50
48
51
49
@ Override
You can’t perform that action at this time.
0 commit comments