Skip to content

Commit 6556c6f

Browse files
authored
Merge pull request #1596 from adamwojs/removed_redundant_null_check
Removed redundant null check in phpStringLiteralExpressionClassReference method
2 parents 8ceeeb9 + 80d3363 commit 6556c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/config/php/PhpConfigReferenceContributor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private static boolean phpStringLiteralExpressionClassReference(String signature
162162
}
163163

164164
ParameterList parameterList = (ParameterList) psiElement.getContext();
165-
if (parameterList == null || !(parameterList.getContext() instanceof NewExpression)) {
165+
if (!(parameterList.getContext() instanceof NewExpression)) {
166166
return false;
167167
}
168168

0 commit comments

Comments
 (0)