Add support for PHP 8.0's union types
This fixes https://bugs.kde.org/show_bug.cgi?id=439583 and implements https://wiki.php.net/rfc/union_types_v2
This fixes https://bugs.kde.org/show_bug.cgi?id=439583 and implements https://wiki.php.net/rfc/union_types_v2