Add some extra catches and remove debug info

This commit is contained in:
James Cole
2023-01-21 06:52:04 +01:00
parent afca023767
commit 90219bec35

View File

@@ -90,8 +90,9 @@ trait ConvertsDataTypes
if (null === $string) { if (null === $string) {
return null; return null;
} }
var_dump($string); if('' === $string) {
return '';
}
$search = [ $search = [
"\0", // NUL "\0", // NUL
"\f", // form feed "\f", // form feed
@@ -153,6 +154,9 @@ trait ConvertsDataTypes
if (null === $string) { if (null === $string) {
return null; return null;
} }
if('' === $string) {
return '';
}
return trim($string); return trim($string);
} }