fix ValueResolver static array for non static keys

This commit is contained in:
Tomas Votruba 2019-10-12 16:01:51 +02:00
parent 8e46b7225b
commit 3d9790e26c

View File

@ -182,10 +182,13 @@ final class ValueResolver
foreach ($constantArrayType->getValueTypes() as $i => $valueType) {
if ($valueType instanceof ConstantArrayType) {
$value = $this->extractConstantArrayTypeValue($valueType);
} else {
/** @var ConstantScalarType $valueType */
} elseif ($valueType instanceof ConstantScalarType) {
$value = $valueType->getValue();
} else {
// not sure about value
continue;
}
$values[$keys[$i]] = $value;
}