Union types used to be provided via PHPDoc, and now PhpStorm highlights such occurrences.

With the Alt+Enter quick-fix, they can now be converted into native union types.

This works anywhere that union types are applicable, including function arguments, return types, and properties. For properties, it takes into account default values, too.