Re: [PHP-DEV] [RFC] [DISCUSSION] Compact Object Property Assignment

This is only part of a thread. view whole thread
  109175
March 20, 2020 23:47 jakob@givoni.dk (Jakob Givoni)
On Wed, Mar 18, 2020 at 12:27 AM Michał Brzuchalski
brzuchalski@gmail.com> wrote:

> Using Object Initializer enforce that if a class is instantiated with the Object Initializer, > at the end of the instantiation and properties initialization, all visible properties > (depends on initialization scope) are initialized, otherwise, a RuntimeException is thrown. > This helps to avoid bugs where a property is added to the class but forgot to be assigned > it a value in all cases where the class is instantiated and initialized. https://wiki.php.net/rfc/object-initializer#restrictions
Got it. Out of curiosity, would you be able to summarize why you believe your proposal was not accepted?