Skip to content

Commit d5276c4

Browse files
committed
Fix type error with fetchClassConst
1 parent 4762a63 commit d5276c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/rascal/lang/php/analysis/includes/ScriptResolve.rsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public tuple[rel[loc,loc] resolved, lrel[str,datetime] timings] scriptResolve(Sy
206206
resolvedExpr = bottom-up visit(resolveExpr) {
207207
case fetchConst(name(cn)) => solvedConstants[normalConst(cn)] when normalConst(cn) in solvedConstants
208208
209-
case fetchClassConst(name(name(cln)),str cn) => solvedConstants[classConst(cln,cn)] when classConst(cln,cn) in solvedConstants
209+
case fetchClassConst(name(name(cln)),name(name(cn))) => solvedConstants[classConst(cln,cn)] when classConst(cln,cn) in solvedConstants
210210
}
211211
212212
// Finally, perform our standard simplifications on the expression, performing

0 commit comments

Comments
 (0)