I might have missed earlier emails. How about this?

$myLongNameObject = new myLongNameObject {
    property1: '11111',
    property2: '22222',
    property3: '33333',
    property4: '44444',
    property5: '55555',
};

Can we avoid the new as well like in Javascript?

$myLongNameObject = {
    property3: 'xyz',
    property4: 'abc',
    property5: 5,
    property6: {
        a: 1
    }
};

Reply via email to