We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f8c518 commit 85fe8d1Copy full SHA for 85fe8d1
src/spec/PathItem.php
@@ -116,7 +116,7 @@ public function getOperations()
116
{
117
$operations = [];
118
foreach ($this->attributes() as $attribute => $type) {
119
- if ($type === Operation::class && isset($this->$attribute)) {
+ if (\is_array($type) && $type[0] === Operation::class && isset($this->$attribute)) {
120
$operations[$attribute] = $this->$attribute;
121
}
122
0 commit comments