Extend KDevelop's UnsureType and call it UnionType
Extending KDevelop's UnsureType allows us to print the type information in a way that's familiar to PHP developers (int|string
instead of unsure(int,string)
).
We'll call the extended type "UnionType" since that is also how this kind of type is called in PHP.