Skip to content

Commit ca48803

Browse files
waterkiptimlegge
authored andcommitted
Fix perl 5.10 issue with //= syntax
Signed-off-by: Wesley Schwengle <wesley@opndev.io>
1 parent a31840e commit ca48803

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Net/SAML2/Protocol/AuthnRequest.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ around BUILDARGS => sub {
100100

101101
my %params = @_;
102102
if ($params{nameid_format}) {
103-
$params{nameidpolicy_format} //= $params{nameid_format};
103+
unless (defined $params{nameidpolicy_format}) {
104+
$params{nameidpolicy_format} = $params{nameid_format};
105+
}
104106
}
105107

106108
return $self->$orig(%params);

0 commit comments

Comments
 (0)