Re: [PHP-DEV] [RFC][Vote] Typed Properties

2016-05-28 Thread Tony Marston
wrote in message news:2049e48d-5dd3-051b-2564-afeb8c64c...@fleshgrinder.com... On 5/27/2016 10:35 AM, Tony Marston wrote: I disagree completely. In a database system there is no rule that says an object can only hold data from a single row otherwise Martin Fowler, the author of PoEAA, would

Re: [PHP-DEV] [RFC][Vote] Typed Properties

2016-05-28 Thread Lester Caine
On 27/05/16 19:03, Fleshgrinder wrote: >>> if (isset($row['d'])) { >>> >>$o->d = new DateTime($row['d']); >>> >> } >>> >> >>> >> No need to assign null since it already is null by default and the >>> >> nullable hint will not result in any errors upon accessing it. >> > >> > Actually,