Union types in PHP (again), Github RFCs

There has been a new proposal by Nikita Popov about introducing Union types in PHP. There has been a previous proposal which has been rejected. I think PHP really needs this especially in the light that PHP internal functions have return types that are incompatible with the current type system ( fread() returns string|false). This…