Skip to content

Commit ae33449

Browse files
committed
Make issuerState nullable
1 parent 9b7a67f commit ae33449

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Factories/Entities/AuthCodeEntityFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function fromState(array $state): AuthCodeEntity
9696
$isRevoked = (bool) $state['is_revoked'];
9797
$flowType = empty($state['flow_type']) ? null : FlowTypeEnum::tryFrom((string)$state['flow_type']);
9898
$txCode = empty($state['tx_code']) ? null : (string)$state['tx_code'];
99-
$issuerState = (string) $state['issuer_state'];
99+
$issuerState = empty($state['issuer_state']) ? null : (string)$state['issuer_state'];
100100

101101
/** @psalm-suppress MixedAssignment */
102102
$authorizationDetails = isset($state['authorization_details']) && is_string($state['authorization_details']) ?

0 commit comments

Comments
 (0)