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
Description
Denormalizer breaks with an error Data expected to be an array, string given. when it handles an object, which contains a generic-like annotation, but is not an array or iterable.
How to reproduce
interface Foo {}
/** @template TFoo of Foo */interface Bar {}
finalclass FooBar {
/** @var Bar<Foo> */publicBar$bar; // This prop will fail// ...
}
Possible Solution
I digged it in PhpDocTypeHelper, which is part of phpDocumentor, so I don't know how to solve it. 😟