mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-13 12:33:52 +01:00
fix ValueResolver static array for non static keys
This commit is contained in:
parent
8e46b7225b
commit
3d9790e26c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user