Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #87 close #102 Co-authored-by: rv1971 <[email protected]>
- Loading branch information