Skip to content

Commit

Permalink
fix static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Jul 11, 2022
1 parent 27d9d53 commit 6ebbb8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Expand Up @@ -280,11 +280,6 @@ parameters:
count: 1
path: src/Tracing/HttpClient/AbstractTraceableResponse.php

-
message: "#^Method Sentry\\\\SentryBundle\\\\Tracing\\\\HttpClient\\\\AbstractTraceableResponse::stream\\(\\) has parameter \\$responses with no value type specified in iterable type iterable.$#"
count: 1
path: src/Tracing/HttpClient/AbstractTraceableResponse.php

-
message: "#^Method Sentry\\\\SentryBundle\\\\Tracing\\\\HttpClient\\\\TraceableHttpClientForV6::withOptions\\(\\) has parameter \\$options with no value type specified in iterable type array.$#"
count: 1
Expand Down
2 changes: 2 additions & 0 deletions src/Tracing/HttpClient/AbstractTraceableHttpClient.php
Expand Up @@ -67,6 +67,8 @@ public function request(string $method, string $url, array $options = []): Respo

/**
* {@inheritdoc}
*
* @param AbstractTraceableResponse|iterable<AbstractTraceableResponse> $responses
*/
public function stream($responses, float $timeout = null): ResponseStreamInterface
{
Expand Down
1 change: 1 addition & 0 deletions tests/Tracing/HttpClient/TraceableHttpClientTest.php
Expand Up @@ -87,6 +87,7 @@ public function testRequest(): void

$response->getContent(false);

$this->assertNotNull($transaction->getSpanRecorder());
$spans = $transaction->getSpanRecorder()->getSpans();
$this->assertCount(2, $spans);
$this->assertNotNull($spans[1]->getEndTimestamp());
Expand Down

0 comments on commit 6ebbb8a

Please sign in to comment.