Skip to content

Commit 5164991

Browse files
updated code ql
1 parent d63dcbd commit 5164991

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Database/Validator/PartialStructure.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PartialStructure extends Structure
1313
* Returns true if valid or false if not.
1414
*
1515
* @param mixed $document
16-
* @param array<string, string> $requiredAttributes optional list of required attributes to check
16+
* @param array<int, string> $requiredAttributes optional list of required attributes to check
1717
*
1818
* @return bool
1919
*/
@@ -37,6 +37,9 @@ public function isValid($document, array $requiredAttributes = []): bool
3737
$name = $attribute['$id'] ?? '';
3838
$keys[$name] = $attribute;
3939
}
40+
/**
41+
* @var array<mixed,mixed> $requiredAttributesMap
42+
*/
4043
$requiredAttributesMap = [];
4144
foreach ($this->attributes as $attribute) {
4245
if ($attribute['required'] === true && in_array($attribute['$id'], $requiredAttributes)) {

0 commit comments

Comments
 (0)