more types

This commit is contained in:
Shish
2020-01-26 19:44:36 +00:00
parent f8499be286
commit cddf6e9d5f
9 changed files with 12 additions and 11 deletions

View File

@ -105,7 +105,7 @@ class StatsDInterface extends Extension
try {
$parts = explode(":", STATSD_HOST);
$host = $parts[0];
$port = $parts[1];
$port = (int)$parts[1];
$fp = fsockopen("udp://$host", $port, $errno, $errstr);
if (! $fp) {
return;