Skip to content

Commit 8a290be

Browse files
committed
Set revision psalm to 6.4.0, more suppressions
1 parent 66d1a18 commit 8a290be

File tree

38 files changed

+52
-39
lines changed

38 files changed

+52
-39
lines changed

src/Aws/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"phpstan/phpstan-phpunit": "^1.0",
3030
"phpunit/phpunit": "~9",
3131
"psalm/plugin-phpunit": "^0.19.2",
32-
"vimeo/psalm": "^6.0"
32+
"vimeo/psalm": "6.4.0"
3333
},
3434
"autoload": {
3535
"psr-4": {

src/Aws/src/Eks/DataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function getK8sHeader(): ?string
2828
return null;
2929
}
3030

31-
return 'Bearer' . file_get_contents($this->k8sTokenPath) ?: '';
31+
return 'Bearer' . (file_get_contents($this->k8sTokenPath) ?: '');
3232
}
3333

3434
// Check if there exists a k8s certification file

src/Context/Swoole/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
"psalm/plugin-phpunit": "^0.19.2",
3232
"open-telemetry/sdk": "^1.0",
3333
"phpunit/phpunit": "^9.5",
34-
"vimeo/psalm": "^6.0"
34+
"vimeo/psalm": "6.4.0"
3535
}
3636
}

src/Instrumentation/CakePHP/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"psalm/plugin-phpunit": "^0.19.2",
2727
"open-telemetry/sdk": "^1.0",
2828
"phpunit/phpunit": "^9.5|^10.5",
29-
"vimeo/psalm": "^6.0",
29+
"vimeo/psalm": "6.4.0",
3030
"symfony/http-client": "^6 || ^7"
3131
},
3232
"suggest": {
@@ -54,4 +54,4 @@
5454
"php-http/discovery": true
5555
}
5656
}
57-
}
57+
}

src/Instrumentation/CodeIgniter/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"phpstan/phpstan-phpunit": "^1.0",
2525
"psalm/plugin-phpunit": "^0.19.2",
2626
"phpunit/phpunit": "^9.5",
27-
"vimeo/psalm": "^6.0"
27+
"vimeo/psalm": "6.4.0"
2828
},
2929
"autoload": {
3030
"psr-4": {

src/Instrumentation/Curl/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"psalm/plugin-phpunit": "^0.19.2",
3232
"open-telemetry/sdk": "^1.0",
3333
"phpunit/phpunit": "^9.5",
34-
"vimeo/psalm": "^6.0"
34+
"vimeo/psalm": "6.4.0"
3535
},
3636
"autoload": {
3737
"psr-4": {

src/Instrumentation/ExtAmqp/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"psalm/plugin-phpunit": "^0.19.2",
2525
"open-telemetry/sdk": "^1.0",
2626
"phpunit/phpunit": "^9.5",
27-
"vimeo/psalm": "^6.0"
27+
"vimeo/psalm": "6.4.0"
2828
},
2929
"autoload": {
3030
"psr-4": {

src/Instrumentation/ExtAmqp/src/ExtAmqpInstrumentation.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* This uses SemConv 1.24, until messaging SemConv becomes stable.
2323
* @see https://opentelemetry.io/docs/specs/semconv/messaging/rabbitmq/
2424
* @phan-file-suppress PhanDeprecatedClassConstant
25+
* @psalm-suppress UnusedClass
2526
*/
2627
final class ExtAmqpInstrumentation
2728
{
@@ -35,6 +36,7 @@ public static function register(): void
3536
'https://opentelemetry.io/schemas/1.24.0',
3637
);
3738

39+
/** @psalm-suppress UnusedFunctionCall */
3840
hook(
3941
AMQPExchange::class,
4042
'publish',
@@ -148,6 +150,7 @@ public static function register(): void
148150

149151
protected static function createInteractionWithQueueSpan(CachedInstrumentation $instrumentation, $class, string $method)
150152
{
153+
/** @psalm-suppress UnusedFunctionCall */
151154
hook(
152155
$class,
153156
$method,

src/Instrumentation/ExtAmqp/tests/Integration/ExtAmqpInstrumentationTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function tearDown(): void
4444

4545
public function test_rabbit_basic_publish_without_args_works(): void
4646
{
47-
list($connection, $routing_key, $channel, $exchange, $queue) = $this->setUpQueue();
47+
list($connection, $routing_key, $_channel, $exchange, $queue) = $this->setUpQueue();
4848

4949
try {
5050
$exchange->publish('test', $routing_key);
@@ -78,7 +78,7 @@ public function test_rabbit_basic_publish_without_args_works(): void
7878
*/
7979
public function test_rabbit_basic_publish(string $messageInteraction): void
8080
{
81-
list($connection, $routing_key, $channel, $exchange, $queue) = $this->setUpQueue();
81+
list($connection, $routing_key, $_channel, $exchange, $queue) = $this->setUpQueue();
8282

8383
try {
8484
$exchange->publish('test', $routing_key, AMQP_NOPARAM, []);
@@ -106,7 +106,6 @@ public function test_rabbit_basic_publish(string $messageInteraction): void
106106

107107
$this->assertCount(2, $this->storage);
108108

109-
/** @var ImmutableSpan $publishSpan */
110109
$interactionSpan = $this->storage[1];
111110
$this->assertEquals(SpanKind::KIND_CLIENT, $interactionSpan->getKind());
112111
$this->assertEquals($queue->getName() . ' ' . $messageInteraction, $interactionSpan->getName());

src/Instrumentation/ExtRdKafka/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"psalm/plugin-phpunit": "^0.19.2",
2727
"open-telemetry/sdk": "^1.0",
2828
"phpunit/phpunit": "^9.5",
29-
"vimeo/psalm": "^6.0"
29+
"vimeo/psalm": "6.4.0"
3030
},
3131
"autoload": {
3232
"psr-4": {

0 commit comments

Comments
 (0)