Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/Log.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Log.php b/core/Log.php
index 82f2beab66..3c3901f925 100644
--- a/core/Log.php
+++ b/core/Log.php
@@ -210,9 +210,9 @@ class Log extends Singleton
$message = $message->getMessage();
}
- if (! is_string($message)) {
+ if (is_object($message) || is_array($message) || is_resource($message)) {
$this->logger->warning('Trying to log a message that is not a string', array(
- 'exception' => new \InvalidArgumentException
+ 'exception' => new \InvalidArgumentException('Trying to log a message that is not a string')
));
return;
}