Commit 54d9d01
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 <rv1971@web.de>1 parent 6d2a7bb commit 54d9d01
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments