I have two classes:
public class B {
public static $fields = [
'name',
'descripion'
];
}
public class A {
public static $fields = [
'name',
'descripion',
'subFields' => B::$fields
];
}
but when I try to get the $fields var from B that way I get the error: Constant expression contains invalid operations
Is there another way to do it or is just impossible?