Skip to content

Commit f0779ac

Browse files
authored
MQE-1227: "Required" attribute value is skipped for metadata (#249)
1 parent 59524a1 commit f0779ac

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Objects/OperationElement.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ public function __construct($key, $value, $type, $required, $nestedElements = []
6464
$this->value = $value;
6565
$this->type = $type;
6666
$this->nestedElements = $nestedElements;
67-
if ($required) {
68-
$this->required = true;
69-
} else {
70-
$this->required = false;
71-
}
67+
$this->required = filter_var($required, FILTER_VALIDATE_BOOLEAN);
7268
$this->nestedMetadata = $nestedMetadata;
7369
}
7470

0 commit comments

Comments
 (0)