I found this line of code to be problematic on a server running PHP7.4:
public function expiresAfter(int|\DateInterval|null $time);
I get a ParseError, with PHP expecting a variable. Couldn't find the symbol's usage as it is here in Reference — What does this symbol mean in PHP?
What do the vertical bars mean here? Also is there a way to rewrite this so it works with PHP7.4?