Expand description
A collection of shared, static, and lazily-initialized TAtomic types.
This module provides canonical, reusable instances for common PHP types. Using these constants avoids repeated allocations for frequently used types.
Constants§
- ARRAYKEY_
ATOMIC - A static
TAtomicrepresenting thearray-keytype (int|string). - BOOL_
ATOMIC - A static
TAtomicrepresenting thebooltype. - CLASS_
STRING_ ATOMIC - A static
TAtomicrepresenting theclass-stringtype. - CLOSED_
RESOURCE_ ATOMIC - A static
TAtomicrepresenting a closedresource. - ENUM_
STRING_ ATOMIC - A static
TAtomicrepresenting theenum-stringtype. - FALSE_
ATOMIC - A static
TAtomicrepresenting the literalfalsetype. - FALSY_
MIXED_ ATOMIC - A static
TAtomicrepresenting any “falsy” value (e.g.,false,0,"",[]). - FLOAT_
ATOMIC - A static
TAtomicrepresenting thefloattype. - INTERFACE_
STRING_ ATOMIC - A static
TAtomicrepresenting theinterface-stringtype. - INT_
ATOMIC - A static
TAtomicrepresenting the generalinttype. - INT_
FLOAT_ ATOMIC_ SLICE - A static slice of atomics representing the union type
int|float. - INT_
STRING_ ATOMIC_ SLICE - A static slice of atomics representing the union type
int|string. - ISSET_
FROM_ LOOP_ MIXED_ ATOMIC - A static
TAtomicrepresenting amixedtype that originates from anisset()check inside a loop. - LOWERCASE_
STRING_ ATOMIC - A static
TAtomicfor alowercase-string. - MINUS_
ONE_ INT_ ATOMIC - A static
TAtomicrepresenting the integer literal-1. - MIXED_
ATOMIC - A static
TAtomicrepresenting themixedtype. - NEGATIVE_
INT_ ATOMIC - A static
TAtomicrepresenting a negative integer (negative-intorint<min, -1>). - NEVER_
ATOMIC - A static
TAtomicrepresenting thenevertype, which indicates an impossible state. - NON_
EMPTY_ LOWERCASE_ STRING_ ATOMIC - A static
TAtomicfor anon-empty-lowercase-string. - NON_
EMPTY_ STRING_ ATOMIC - A static
TAtomicfor anon-empty-string. - NON_
EMPTY_ UNSPECIFIED_ LITERAL_ STRING_ ATOMIC - A static
TAtomicrepresenting a non-emptyliteral-stringwhere the value is unknown. - NON_
NEGATIVE_ INT_ ATOMIC - A static
TAtomicrepresenting a non-negative integer (non-negative-intorint<0, max>). - NON_
NULL_ ATOMIC - A static
TAtomicrepresenting any value that is notnull. - NON_
POSITIVE_ INT_ ATOMIC - A static
TAtomicrepresenting a non-positive integer (non-positive-intorint<min, 0>). - NULL_
ATOMIC - A static
TAtomicrepresenting thenulltype. - NULL_
FLOAT_ ATOMIC_ SLICE - A static slice of atomics representing the union type
null|float. - NULL_
INT_ ATOMIC_ SLICE - A static slice of atomics representing the union type
null|int. - NULL_
OBJECT_ ATOMIC_ SLICE - A static slice of atomics representing the union type
null|object. - NULL_
SCALAR_ ATOMIC_ SLICE - A static slice of atomics representing the union type
null|scalar. - NULL_
STRING_ ATOMIC_ SLICE - A static slice of atomics representing the union type
null|string. - NUMERIC_
ATOMIC - A static
TAtomicrepresenting thenumerictype (int|float|numeric-string). - NUMERIC_
STRING_ ATOMIC - A static
TAtomicfor anumeric-string. - NUMERIC_
TRUTHY_ STRING_ ATOMIC - A static
TAtomicfor anumeric-stringthat is alsotruthy. - OBJECT_
ATOMIC - A static
TAtomicrepresenting the generalobjecttype. - ONE_
INT_ ATOMIC - A static
TAtomicrepresenting the integer literal1. - OPEN_
RESOURCE_ ATOMIC - A static
TAtomicrepresenting an openresource. - PLACEHOLDER_
ATOMIC - A static
TAtomicused as a temporary placeholder during type reconciliation. - POSITIVE_
INT_ ATOMIC - A static
TAtomicrepresenting a positive integer (positive-intorint<1, max>). - RESOURCE_
ATOMIC - A static
TAtomicrepresenting theresourcetype. - SCALAR_
ATOMIC - A static
TAtomicrepresenting thescalartype (int|float|string|bool). - SIGNUM_
RESULT_ SLICE - A static slice of atomics representing the union type
-1|0|1, commonly returned by comparison operations like the spaceship operator (<=>). - STRING_
ATOMIC - A static
TAtomicfor the generalstringtype. - TRAIT_
STRING_ ATOMIC - A static
TAtomicrepresenting thetrait-stringtype. - TRUE_
ATOMIC - A static
TAtomicrepresenting the literaltruetype. - TRUTHY_
LOWERCASE_ STRING_ ATOMIC - A static
TAtomicfor atruthy-lowercase-string. - TRUTHY_
MIXED_ ATOMIC - A static
TAtomicrepresenting any “truthy” value. - TRUTHY_
STRING_ ATOMIC - A static
TAtomicfor atruthy-string. - UNSPECIFIED_
LITERAL_ FLOAT_ ATOMIC - A static
TAtomicrepresenting theliteral-floattype (unspecified literal). - UNSPECIFIED_
LITERAL_ INT_ ATOMIC - A static
TAtomicrepresenting aliteral-intwhere the value is unknown. - UNSPECIFIED_
LITERAL_ STRING_ ATOMIC - A static
TAtomicrepresenting aliteral-stringwhere the value is unknown. - VOID_
ATOMIC - A static
TAtomicrepresenting thevoidtype. - ZERO_
INT_ ATOMIC - A static
TAtomicrepresenting the integer literal0.
Statics§
- EMPTY_
KEYED_ ARRAY_ ATOMIC - A lazily-initialized static
TAtomicfor an empty array (array<never, never>). - EMPTY_
STRING_ ATOMIC - A static
TAtomicrepresenting an empty string literal (""). - MIXED_
CALLABLE_ ATOMIC - A lazily-initialized static
TAtomicfor a mixed callable (callable). - MIXED_
CLOSURE_ ATOMIC - A lazily-initialized static
TAtomicfor a mixed closure (Closure). - MIXED_
ITERABLE_ ATOMIC - A lazily-initialized static
TAtomicfor a mixed iterable (iterable<mixed, mixed>). - MIXED_
KEYED_ ARRAY_ ATOMIC - A lazily-initialized static
TAtomicfor a mixed array (array<array-key, mixed>).