PHP RFC: Records - questions

From: Date: Thu, 05 Dec 2024 17:12:01 +0000
Subject: PHP RFC: Records - questions
Groups: php.internals 
Request: Send a blank email to internals+get-126106@lists.php.net to get a copy of this message
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

« previous php.internals (#126106) next »