// do not run when this class is unit tested
if (!
$this->testMode &&
$class === FeatureFlagExtensionTest::
class) { // @codeCoverageIgnoreStart
return;
// @codeCoverageIgnoreEnd
} $reflectedMethod =
new \
ReflectionMethod($class,
$method);
/** @var DisabledFeatures[] $features */
$features =
array_filter([ $this->annotationReader->
getMethodAnnotation($reflectedMethod, DisabledFeatures::
class) ??
[],
$this->annotationReader->
getClassAnnotation($reflectedMethod->
getDeclaringClass(), DisabledFeatures::
class) ??
[],
]);
$this->savedFeatureConfig = null;
if (!
str_starts_with($class,
$this->namespacePrefix
)) { return;
} $this->savedFeatureConfig = Feature::
getRegisteredFeatures();
$this->savedServerVars =
$_SERVER;