diff --git a/src/M6Web/Component/Statsd/MessageEntity.php b/src/M6Web/Component/Statsd/MessageEntity.php index 77e7f81..6e1e5dd 100644 --- a/src/M6Web/Component/Statsd/MessageEntity.php +++ b/src/M6Web/Component/Statsd/MessageEntity.php @@ -60,7 +60,7 @@ protected function checkConstructor() throw new Exception('node and unit have to be a string'); } - if (!is_int($this->value) || !is_string($this->value)) { + if (!is_int($this->value) && !is_string($this->value)) { throw new Exception('value has to be an integer or a string'); }