Re: Re: Attributes and constructor property promotion

From: Date: Mon, 28 Sep 2020 12:24:49 +0000
Subject: Re: Re: Attributes and constructor property promotion
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-111944@lists.php.net to get a copy of this message
On Mon, 28 Sep 2020 at 13:56, Benjamin Eberlei <kontakt@beberlei.de> wrote: > imho, we should pick the 80% use-case and advise to desugar the code if > other behavior is desired. For me the 80% case is that the attribute only > applies to the property, not to the parameter. +1 for the desugaring advice in this case, however as a matter of consistency I'd rather have it either apply to both the property and the parameter, or just throw an exception if used on promoted properties, whatever the 80% use-case is (source?) Kind regards, — Benjamin

« previous php.internals (#111944) next »