Re: Typed properties patch

From: Date: Fri, 15 Apr 2016 21:43:08 +0000
Subject: Re: Typed properties patch
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-92355@lists.php.net to get a copy of this message
On 15/04/16 22:01, Yasuo Ohgaki wrote: >> public Node | null $left; > Value must be able to be NULL. > SQL has "NOT NULL" constraint. We may have "MAY NULL" and > this syntax seems reasonable choice. While the value of a field may be constrained as NOT NULL, it may also be defined as DEFAULT xxx which will be used if the record being written HAS a null value for that field. You will only get an error writing the field if there is not a defined DEFAULT for a NOT NULL field. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.internals (#92355) next »