Skip to content

Commit daed418

Browse files
committed
Make comparison strict
1 parent 5b0e9b2 commit daed418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spec/OpenApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function performValidation()
8181
$providedFields = array_keys($this->getRawSpecData());
8282
$allowedFields = array_keys($this->attributes());
8383
foreach ($providedFields as $field) {
84-
if (!in_array($field, $allowedFields)) {
84+
if (!in_array($field, $allowedFields, true)) {
8585
$this->addError('Invalid top level field: "' . $field . '". More information can be obtained at https://spec.openapis.org/oas/v3.0.3.html#fixed-fields');
8686
}
8787
}

0 commit comments

Comments
 (0)