Method resolverReferences is calling resolveReferences method on $referencedObject without checking if it's an array, resulting in the error mentioned in issue object.
The $referencedObject variable is suggested via phpdoc to be Response|Reference|null, but resolve method can return an array.