private function _prepareInhibitAnyPolicy(ValidatorState $state,
        Certificate $cert): ValidatorState
    {
        $extensions = $cert->tbsCertificate()->extensions();
        if ($extensions->hasInhibitAnyPolicy()) {
            $ext = $extensions->inhibitAnyPolicy();
            if ($ext->skipCerts() < $state->inhibitAnyPolicy()) {
                $state = $state->withInhibitAnyPolicy($ext->skipCerts());
            }
        }
        return $state;
    }
private function _prepareInhibitAnyPolicy(ValidatorState $state,
        Certificate $cert): ValidatorState
    {
        $extensions = $cert->tbsCertificate()->extensions();
        if ($extensions->hasInhibitAnyPolicy()) {
            $ext = $extensions->inhibitAnyPolicy();
            if ($ext->skipCerts() < $state->inhibitAnyPolicy()) {
                $state = $state->withInhibitAnyPolicy($ext->skipCerts());
            }
        }
        return $state;
    }
private function _prepareInhibitAnyPolicy ( ValidatorState $ state , Certificate $ cert ) : ValidatorState { $ extensions = $ cert -> tbsCertificate ( ) -> extensions ( ) ; if ( $ extensions -> hasInhibitAnyPolicy ( ) ) { $ ext = $ extensions -> inhibitAnyPolicy ( ) ; if ( $ ext -> skipCerts ( ) < $ state -> inhibitAnyPolicy ( ) ) { $ state = $ state -> withInhibitAnyPolicy ( $ ext -> skipCerts ( ) ) ; } } return $ state ; }
Apply inhibit any-policy handling for the preparation step.

@param ValidatorState $state
@param Certificate $cert
@return ValidatorState
Apply inhibit any - policy handling for the preparation step .