mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Update dependencies
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace common\components;
|
||||
|
||||
use Domnikl\Statsd\Client;
|
||||
@@ -80,7 +82,7 @@ class StatsD extends Component {
|
||||
|
||||
protected function createConnection(): Connection {
|
||||
if (!empty($this->host) && !empty($this->port)) {
|
||||
return new Connection\UdpSocket($this->host, $this->port);
|
||||
return new Connection\UdpSocket($this->host, (int)$this->port);
|
||||
}
|
||||
|
||||
return new Connection\Blackhole();
|
||||
|
Reference in New Issue
Block a user