$test->
markTestSkipped('Skipping feature test for flag "' .
$flagName . '"'
);
} public static function throwException(string
$flag, string
$message, bool
$state = true
): void
{ if (self::
isActive($flag) ===
$state || (self::
$registeredFeatures !==
[] && !self::
has($flag))) { throw new \
RuntimeException($message);
} if (\PHP_SAPI !== 'cli'
) { ScriptTraces::
addDeprecationNotice($message);
} } public static function triggerDeprecationOrThrow(string
$majorFlag, string
$message): void
{ if (self::
isActive($majorFlag) || (self::
$registeredFeatures !==
[] && !self::
has($majorFlag))) { throw new \
RuntimeException('Tried to access deprecated functionality: ' .
$message);
} if (!
isset(self::
$silent[$majorFlag]) || !self::
$silent[$majorFlag]) { if (\PHP_SAPI !== 'cli'
) {