Singleton types are those which allow only one value. PHP has support for two singleton types:false as of PHP 8.0.0 andtrue as of PHP 8.2.0.
Prior to PHP 8.2.0 thefalse type could only be used as part of aunion type.
Note: It is not possible to define custom singleton types. Consider using anenumerations instead.