Q: How to declare an array of objects with initial value in PHP? Is there a way to declare an initialized array of objects? Something like this (close to the Typescript way):
class MyClass {
}

class MySecondClass
{
    public $myArray = [new MyClass(), new MyClass()];
}

