Skip to content

Commit 6d023e0

Browse files
committed
Fix typo on SPNameQualifier mismatch error message
1 parent c43d61b commit 6d023e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Saml2/Response.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ public function getNameIdData()
655655
$spEntityId = $spData['entityId'];
656656
if ($spEntityId != $nameId->getAttribute($attr)) {
657657
throw new ValidationError(
658-
"The SPNameQualifier value mistmatch the SP entityID value.",
658+
"The SPNameQualifier value mismatch the SP entityID value.",
659659
ValidationError::SP_NAME_QUALIFIER_NAME_MISMATCH
660660
);
661661
}

tests/src/OneLogin/Saml2/ResponseTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function testReturnNameId()
199199
$nameId10 = $response10->getNameId();
200200
$this->fail('ValidationError was not raised');
201201
} catch (ValidationError $e) {
202-
$this->assertStringContainsString('The SPNameQualifier value mistmatch the SP entityID value.', $e->getMessage());
202+
$this->assertStringContainsString('The SPNameQualifier value mismatch the SP entityID value.', $e->getMessage());
203203
}
204204

205205
$response11 = new Response($settings, $xml6);
@@ -405,7 +405,7 @@ public function testGetNameIdData()
405405
$nameIdData10 = $response10->getNameIdData();
406406
$this->fail('ValidationError was not raised');
407407
} catch (ValidationError $e) {
408-
$this->assertStringContainsString('The SPNameQualifier value mistmatch the SP entityID value.', $e->getMessage());
408+
$this->assertStringContainsString('The SPNameQualifier value mismatch the SP entityID value.', $e->getMessage());
409409
}
410410

411411
$response11 = new Response($settings, $xml6);

0 commit comments

Comments
 (0)