Open abdul-alhasany opened 1 year ago
Hi When using uniontype the parser is providing the wrong loc data.
uniontype
Example:
function functionWithMultipleTypes(int $arg1, $arg2): string|int { return 'foo'; }
The union type string|int provides this loc:
string|int
start: { line: 3, column: 65, <-- This is wrong offset: 72 <-- This is wrong } end: { line: 3, column: 64, offset: 71 }
end location data is correct.
Hi When using
uniontype
the parser is providing the wrong loc data.Example:
The union type
string|int
provides this loc:end location data is correct.