You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix PathItem::resolveReferences() for array fields
Fixed path references resolution fail tied to a dynamic prop modification:
dynamic attribute array references were not resolving, producing an E_NOTICE.
The previous code `$this->$attribute[$k] = $referencedObject` had
no effect if the value of `$attribute` is an array (as for instance
in the case of `parameters`), because `$this->$attribute` invokes
`SpecBaseObject::__get()`, which does *not* return a reference.
Indeed PHP issued `Notice: Indirect modification of overloaded property
cebe\openapi\spec\PathItem::$parameters has no effect` in this case.
close#87close#102
Co-authored-by: rv1971 <[email protected]>
0 commit comments