We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5d1d5d commit 4a72cc6Copy full SHA for 4a72cc6
1 file changed
src/Client/ThriftClient.php
@@ -22,11 +22,11 @@ class ThriftClient implements ClientInterface
22
23
private $spans = [];
24
25
- public function __construct(string $serviceName, AgentInterface $agent, int $batch = self::MAX_BATCH_SIZE)
+ public function __construct(string $serviceName, AgentInterface $agent, $batch = self::MAX_BATCH_SIZE)
26
{
27
$this->serviceName = $serviceName;
28
$this->agent = $agent;
29
- $this->batch = $batch;
+ $this->batch = (int)$batch;
30
}
31
32
public function add(SpanInterface $span): ClientInterface
0 commit comments