Skip to content

Commit 949e7bf

Browse files
committed
Ignoring PhanUndeclaredClassAttribute error for overriden functions
1 parent 847a356 commit 949e7bf

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

src/Exporter/Instana/src/InstanaTransport.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public function __construct(
5959
$this->announce();
6060
}
6161

62+
/**
63+
* @suppress PhanUndeclaredClassAttribute
64+
*/
6265
#[\Override]
6366
public function contentType(): string
6467
{
@@ -100,6 +103,9 @@ private function sendPayload(string $payload): ResponseInterface
100103
);
101104
}
102105

106+
/**
107+
* @suppress PhanUndeclaredClassAttribute
108+
*/
103109
#[\Override]
104110
public function shutdown(?CancellationInterface $cancellation = null): bool
105111
{
@@ -110,6 +116,9 @@ public function shutdown(?CancellationInterface $cancellation = null): bool
110116
return $this->closed = true;
111117
}
112118

119+
/**
120+
* @suppress PhanUndeclaredClassAttribute
121+
*/
113122
#[\Override]
114123
public function forceFlush(?CancellationInterface $cancellation = null): bool
115124
{

src/Exporter/Instana/src/SpanConverter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public function __construct(
3838
$this->defaultServiceName = ResourceInfoFactory::defaultResource()->getAttributes()->get(ResourceAttributes::SERVICE_NAME);
3939
}
4040

41+
/**
42+
* @suppress PhanUndeclaredClassAttribute
43+
*/
4144
#[\Override]
4245
public function convert(iterable $spans): array
4346
{

src/Exporter/Instana/src/SpanExporter.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ protected function serializeTrace(iterable $spans): string
4141
);
4242
}
4343

44+
/**
45+
* @suppress PhanUndeclaredClassAttribute
46+
*/
4447
#[\Override]
4548
public function export(iterable $batch, ?CancellationInterface $cancellation = null): FutureInterface
4649
{
@@ -54,12 +57,18 @@ public function export(iterable $batch, ?CancellationInterface $cancellation = n
5457
});
5558
}
5659

60+
/**
61+
* @suppress PhanUndeclaredClassAttribute
62+
*/
5763
#[\Override]
5864
public function shutdown(?CancellationInterface $cancellation = null): bool
5965
{
6066
return $this->transport->shutdown($cancellation);
6167
}
6268

69+
/**
70+
* @suppress PhanUndeclaredClassAttribute
71+
*/
6372
#[\Override]
6473
public function forceFlush(?CancellationInterface $cancellation = null): bool
6574
{

src/Exporter/Instana/src/SpanExporterFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class SpanExporterFactory implements SpanExporterFactoryInterface
1616
const DEFAULT_INSTANA_AGENT_HOST = '127.0.0.1';
1717
const DEFAULT_INSTANA_AGENT_PORT = '42699';
1818

19+
/**
20+
* @suppress PhanUndeclaredClassAttribute
21+
*/
1922
#[\Override]
2023
public function create(): SpanExporterInterface
2124
{

0 commit comments

Comments
 (0)