We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f55b119 commit f4c9818Copy full SHA for f4c9818
1 file changed
src/PrefillGravityForms/Services/PersonalDataService.php
@@ -63,19 +63,19 @@ private function key(string $key): string
63
return $key;
64
}
65
66
- private function getValueFromNestedArray(string $keyString, array $array): string
+ private function getValueFromNestedArray(string $keyString, array $data): string
67
{
68
$keys = explode('.', $keyString);
69
70
foreach ($keys as $key) {
71
- if (is_array($array) && isset($array[$key])) {
72
- $array = $array[$key];
+ if (is_array($data) && isset($data[$key])) {
+ $data = $data[$key];
73
} else {
74
return '';
75
76
77
78
- return $array;
+ return (string) $data;
79
80
81
private function format(string $key, string $value): string
0 commit comments