File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/com/magento/idea/magento2uct/inspections/php/existence Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,11 @@ protected void execute(
39
39
final ClassConstImpl constant ,
40
40
final ClassConstantReference constantReference
41
41
) {
42
- final String constantFqn = constant .getFQN ();
43
-
44
- if (VersionStateManager .getInstance (project ).isExists (constantFqn )) {
45
- return ;
46
- }
47
- final PhpClass containingClass = constant .getContainingClass ();
48
-
49
- if (containingClass == null ) {
42
+ if (VersionStateManager .getInstance (project ).isExists (constant .getFQN ())) {
50
43
return ;
51
44
}
52
- final String messageArg = containingClass .getFQN ().concat ("::" ).concat (constant .getName ());
53
45
final String message = SupportedIssue .USED_NON_EXISTENT_CONSTANT .getMessage (
54
- messageArg ,
46
+ constant . getFQN (). replace ( "." , "::" ) ,
55
47
VersionStateManager .getInstance (project ).getRemovedInVersion (constant .getFQN ())
56
48
);
57
49
You can’t perform that action at this time.
0 commit comments