Skip to content

Commit eb8e209

Browse files
739: Fixed empty PSI elements must not be passed to createDescriptor
1 parent caf1a28 commit eb8e209

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/com/magento/idea/magento2plugin/inspections/php/PluginInspection.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ private void checkParametersCompatibility(
187187

188188
int index = 0;
189189
for (final Parameter pluginMethodParameter : pluginMethodParameters) {
190+
if (pluginMethodParameter.getName().isEmpty()) {
191+
continue;
192+
}
190193
index++;
191194
String declaredType = pluginMethodParameter.getDeclaredType().toString();
192195

0 commit comments

Comments
 (0)