May be null could be considered to be a singleton type two. In my possibly wrong understanding, PHP has three singleton types, not just two.
シングルトン型は、ただひとつの値のみを受け入れる型です。
PHP はふたつのシングルトン型をサポートしています。
PHP 8.0.0 以降でサポートされた false
型と、
PHP 8.2.0 以降でサポートされた true
型です。
注意: カスタムのシングルトン型を定義することはできません。 そうしたい場合、列挙型(Enum) を使うことを検討してください。
May be null could be considered to be a singleton type two. In my possibly wrong understanding, PHP has three singleton types, not just two.