Skip to content

Commit 4e2e35d

Browse files
committed
MQE-1227: "Required" attribute value is skipped for metadata
1 parent 8221bc8 commit 4e2e35d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +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) {
67+
if (filter_var($required, FILTER_VALIDATE_BOOLEAN)) {
6868
$this->required = true;
6969
} else {
7070
$this->required = false;

0 commit comments

Comments
 (0)