Hi,

I have a question in regards to the proposed PHP RFC: Records. For
following snippet:

record Result(bool $success, array $error, array $data);
$result = &Result(false, [], []);
$result->with(success: true)->*with(error: $error + ['Some
error'])*->*with(data:
$data + ['user_id' => 777]))*;

Is this possible to append/merge to existing array properties? Like I am
doing with error.

Regards
Volodymyr Volynets

Reply via email to