Let's say I have a static array and I would like to add some more values into it in a child class. Since PHP does not have static constructor, I really don't know how to achieve this in a clean manner (I definitely don't want to add anything under the class definition and can't change the autoloader)
This is what I would like to achieve (obviously doesn't work)
class Parent{
public static $meta = [1,2,3];
}
class Child extends Parent{
public static $meta = array_merge(parent::$meta,[4,5]);
}