Skip to content

Commit 85fe8d1

Browse files
committed
Update getOperations() to work with new structure
1 parent 7f8c518 commit 85fe8d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spec/PathItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function getOperations()
116116
{
117117
$operations = [];
118118
foreach ($this->attributes() as $attribute => $type) {
119-
if ($type === Operation::class && isset($this->$attribute)) {
119+
if (\is_array($type) && $type[0] === Operation::class && isset($this->$attribute)) {
120120
$operations[$attribute] = $this->$attribute;
121121
}
122122
}

0 commit comments

Comments
 (0)