diff options
author | Robin Appelman <robin@icewind.nl> | 2019-06-13 18:22:11 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-06-13 18:27:56 +0300 |
commit | 04d108e96ef9ab24ec8ee1014ddd2c446e5f622f (patch) | |
tree | 31487146f9614c966b765f882c39c5a2280c9121 /lib | |
parent | 29e89edf822e0baef816e6461de33d4a677aabd5 (diff) |
a bit more robust
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Log/Formatter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Log/Formatter.php b/lib/Log/Formatter.php index e77c343..e2add8e 100644 --- a/lib/Log/Formatter.php +++ b/lib/Log/Formatter.php @@ -59,7 +59,7 @@ class Formatter { $argumentsString = implode(', ', $arguments); $argumentWhiteSpace = str_repeat(' ', $largestIndexWidth + 2); - if (strlen($argumentsString) < $argumentWidth) { + if ($argumentsString && strlen($argumentsString) < $argumentWidth) { return $whiteSpace . $index . '. ' . $this->getFileAndLine($trace, $argumentWidth) . "\n" . $argumentWhiteSpace . $method . '(' . $argumentsString . ')'; |