8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb1c16 commit 6248869Copy full SHA for 6248869
src/fr/adrienbrault/idea/symfony2plugin/form/util/FormUtil.java
@@ -142,6 +142,9 @@ public static PhpClass getFormTypeClass(@Nullable MethodReference calledMethodRe
142
143
// $form = "$this->createForm("new Type()", $entity)";
144
PsiElement formType = PsiElementUtils.getMethodParameterPsiElementAt(calledMethodReference, 0);
145
+ if(formType == null) {
146
+ return null;
147
+ }
148
149
return getFormTypeClassOnParameter(formType);
150
}
0 commit comments