Skip to content

Commit 107757b

Browse files
committed
Fix #487. Enable strict check on in_array method
1 parent 6f4cf30 commit 107757b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Saml2/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ private function _getAttributesByKeyName($keyName = "Name")
814814
continue;
815815
}
816816
$attributeKeyName = $attributeKeyNode->nodeValue;
817-
if (in_array($attributeKeyName, array_keys($attributes))) {
817+
if (in_array($attributeKeyName, array_keys($attributes), true)) {
818818
if (!$allowRepeatAttributeName) {
819819
throw new ValidationError(
820820
"Found an Attribute element with duplicated ".$keyName,
@@ -830,7 +830,7 @@ private function _getAttributesByKeyName($keyName = "Name")
830830
}
831831
}
832832

833-
if (in_array($attributeKeyName, array_keys($attributes))) {
833+
if (in_array($attributeKeyName, array_keys($attributes), true)) {
834834
$attributes[$attributeKeyName] = array_merge($attributes[$attributeKeyName], $attributeValues);
835835
} else {
836836
$attributes[$attributeKeyName] = $attributeValues;

0 commit comments

Comments
 (0)