Re: [RFC][Vote] Typed Properties

From: Date: Sat, 21 May 2016 06:10:42 +0000
Subject: Re: [RFC][Vote] Typed Properties
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-93424@lists.php.net to get a copy of this message
Morning Tom, > I guess yes on both to be consistent with coercion on function invocation but I couldn't find this mentioned in the RFC. Correct. I only made brief mention that the rules for coercion and strictness are reused. Cheers Joe On Fri, May 20, 2016 at 6:59 PM, Tom Worster <fsb@thefsb.org> wrote: > On 5/20/16 2:05 AM, Joe Watkins wrote: > >> Morning internals, >> >> Since we have our answer on nullable types, typed properties can now >> go >> to vote. >> >> https://wiki.php.net/rfc/typed-properties#vote >> >> Note that, support for nullability as RFC'd will be merged when the >> implementation for nullable_types is merged into master. >> >> Please participate. >> > > I lack suffrage but I have a question about coercion and strictness. > > When I assign a value to a property declared with scalar type, is it the > strictness of the file containing the assignment that controls if coercion > happens or not? And is the strictness of the file containing the > declaration irrelevant? > > I guess yes on both to be consistent with coercion on function invocation > but I couldn't find this mentioned in the RFC. > > Tom > >

« previous php.internals (#93424) next »