Skip to content

Commit

Permalink
Update src/M6Web/Component/Statsd/MessageEntity.php
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver THEBAULT <Oliboy50@users.noreply.github.com>
  • Loading branch information
mihai-amihailesei and Oliboy50 authored Sep 19, 2023
1 parent 03aa0f5 commit 87b01a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/M6Web/Component/Statsd/MessageEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 87b01a3

Please sign in to comment.