Catch things that should be NULL

This commit is contained in:
James Cole 2023-01-11 17:38:17 +01:00
parent 3f2560c8e5
commit 6e3381844e
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

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