aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-08-28 01:29:11 (EDT)
committerzzhongwei2012-08-28 01:29:11 (EDT)
commit6e1098a870c7bb86288f8f0eb6da0fc65fceaa72 (patch)
treeda932370135c294d741149faea764b93b5142670
parent514e79e095de6b384f959751496a073cb4445977 (diff)
downloadorg.eclipse.pdt-6e1098a870c7bb86288f8f0eb6da0fc65fceaa72.zip
org.eclipse.pdt-6e1098a870c7bb86288f8f0eb6da0fc65fceaa72.tar.gz
org.eclipse.pdt-6e1098a870c7bb86288f8f0eb6da0fc65fceaa72.tar.bz2
388154: No Content Assist for use trait
https://bugs.eclipse.org/bugs/show_bug.cgi?id=388154
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
index 2fb5390..3c17110 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
@@ -1841,8 +1841,8 @@ public class PHPModelUtils {
List<IType> result = new LinkedList<IType>();
IType[] types = type.getTypes();
for (IType t : types) {
- if (isType && PHPFlags.isTrait(type.getFlags()) || !isType
- && !PHPFlags.isTrait(type.getFlags())) {
+ if (isType && PHPFlags.isTrait(t.getFlags()) || !isType
+ && !PHPFlags.isTrait(t.getFlags())) {
continue;
}
String elementName = t.getElementName();