\Exception|\string causes PhpStorm to complain at the pipe: "Expected variable"