Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-georgiev committed Feb 1, 2019
2 parents 0631cc5 + d68c092 commit c6c123b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/MartinGeorgiev/Utils/DataStructure.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public static function transformPHPArrayToPostgresTextArray(array $phpArray): st

if (\is_numeric($text) || \ctype_digit($text)) {
$escapedText = $text;
} elseif (empty($text)) {
$escapedText = '';
} else {
$escapedText = '"'.\str_replace('"', '\"', $text).'"';
}
Expand Down
2 changes: 1 addition & 1 deletion tests/MartinGeorgiev/Utils/DataStructureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function validTransformations(): array
0 => '',
1 => '',
],
'postgresValue' => '{,}',
'postgresValue' => '{"",""}',
],
[
'phpValue' => [],
Expand Down

0 comments on commit c6c123b

Please sign in to comment.