Skip to content

Commit

Permalink
Improved type conversions in string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroadway committed Apr 22, 2013
1 parent ee93cc0 commit 265619e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Analog/Logger.php
Expand Up @@ -115,7 +115,7 @@ private function interpolate ($message, array $context = array ()) {
} elseif (is_object ($val)) {
$val = json_encode ($val);
} elseif (is_array ($val)) {
$val = join (', ', $val);
$val = json_encode ($val);
} elseif (is_resource ($val)) {
$val = (string) $val;
}
Expand Down

0 comments on commit 265619e

Please sign in to comment.