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(
3939 final ClassConstImpl constant ,
4040 final ClassConstantReference constantReference
4141 ) {
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 ())) {
5043 return ;
5144 }
52- final String messageArg = containingClass .getFQN ().concat ("::" ).concat (constant .getName ());
5345 final String message = SupportedIssue .USED_NON_EXISTENT_CONSTANT .getMessage (
54- messageArg ,
46+ constant . getFQN (). replace ( "." , "::" ) ,
5547 VersionStateManager .getInstance (project ).getRemovedInVersion (constant .getFQN ())
5648 );
5749
You can’t perform that action at this time.
0 commit comments