File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments