Re: RFC Idea - json_validate() validate schema

From: Date: Fri, 03 Mar 2023 21:50:50 +0000
Subject: Re: RFC Idea - json_validate() validate schema
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-119666@lists.php.net to get a copy of this message
On Fri, Mar 3, 2023, at 1:49 PM, Rowan Tommins wrote: > On 3 March 2023 16:30:26 GMT, Larry Garfield <larry@garfieldtech.com> wrote: > >>Class constants FTW. > > s/Class constants/enum/ > > :P Well yes, but if they're being used to just represent a string, rather than being their own value, actually no. :-) Though, I suppose if the list of supported versions is provided as an enum, that's slightly easier to check for from user-space than class constants? --Larry Garfield

« previous php.internals (#119666) next »