Union Type PHP no funciona

private ?int $id = null;
Nickton