I have a class where I want to set an array to have a strict type of class in php , eg.
class Person{
public string $name;
public array:Person $friends;
}
how do I do this
I have a class where I want to set an array to have a strict type of class in php , eg.
class Person{
public string $name;
public array:Person $friends;
}
how do I do this