objek generik tipe php

function getParticipant(): ?object
{
   //...
  $x = new Cat(); 
  return $x;
}
Uninterested Unicorn