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 <f...@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 > >