On Fri, Mar 3, 2023, at 1:49 PM, Rowan Tommins wrote: > On 3 March 2023 16:30:26 GMT, Larry Garfield <la...@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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php