Class PHPStan\Reflection\ParameterAllowedConstants

final

Describes which constants a function/method parameter accepts. Parameters are either 'single' (exactly one constant, e.g. array_unique($flags)) or 'bitmask' (constants combinable with |, e.g. json_encode($flags)). Bitmask parameters may have exclusive groups — subsets of constants that are mutually exclusive even within a bitmask. Populated from resources/constantToFunctionParameterMap.php and available via ExtendedParameterReflection::getAllowedConstants().

Methods