Fix transformer

This commit is contained in:
James Cole
2023-01-11 17:41:03 +01:00
parent 1fede6b802
commit abc7bfb54c

View File

@@ -244,6 +244,12 @@ class TransactionGroupTransformer extends AbstractTransformer
return null;
}
if (array_key_exists($key, $array) && null !== $array[$key]) {
if(0 === $array[$key]) {
return $default;
}
if('0' === $array[$key]) {
return $default;
}
return (string)$array[$key];
}