I am blocked with some phpstan validation, I have this array:
/** @var array<string, string|array<string>> $normalizedImage */
$normalizedImage = $this->normalizer->normalize($data);
$normalizedImage['@id'] = $this->iriConverter->getIriFromItem($data);
$normalizedImage['property']['@id'] = $this->iriConverter->getIriFromItem($object);
The error is:
phpstan: Cannot assign offset '@id' to array|string.
I tried most of combinations in the comment, but I can't figure out what to put here.