File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ public function __construct(
124124 private PfxProvider $ pfxProvider ,
125125 private SubjectAlternativeNameService $ subjectAlternativeNameService ,
126126 private SignRequestService $ signRequestService ,
127- private ? PolicyService $ policyService = null ,
127+ private PolicyService $ policyService ,
128128 ) {
129129 }
130130
@@ -1032,15 +1032,7 @@ public function storeUserMetadata(array $metadata = []): self {
10321032 }
10331033
10341034 private function isCollectMetadataEnabled (): bool {
1035- if ($ this ->policyService !== null ) {
1036- try {
1037- return (bool )$ this ->policyService ->resolve (CollectMetadataPolicy::KEY )->getEffectiveValue ();
1038- } catch (\Throwable ) {
1039- // Fallback keeps legacy behavior during migration rollout.
1040- }
1041- }
1042-
1043- return $ this ->appConfig ->getValueBool (Application::APP_ID , CollectMetadataPolicy::SYSTEM_APP_CONFIG_KEY , false );
1035+ return (bool )$ this ->policyService ->resolve (CollectMetadataPolicy::KEY )->getEffectiveValue ();
10441036 }
10451037
10461038 /**
You can’t perform that action at this time.
0 commit comments