Skip to content

Commit 571bbc4

Browse files
chore(deps): update phpstan packages to v2 (major) (#194)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent cc8fc83 commit 571bbc4

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"doctrine/coding-standard": "^12.0",
2929
"infection/infection": "^0.29.0",
3030
"phpstan/extension-installer": "^1.1",
31-
"phpstan/phpstan": "1.12.16",
32-
"phpstan/phpstan-phpunit": "1.4.2",
33-
"phpstan/phpstan-strict-rules": "1.6.2",
31+
"phpstan/phpstan": "2.1.2",
32+
"phpstan/phpstan-phpunit": "2.0.4",
33+
"phpstan/phpstan-strict-rules": "2.0.3",
3434
"phpunit/phpunit": "^11.0",
3535
"thecodingmachine/phpstan-safe-rule": "^1.0"
3636
},

src/Clients/Consumer/KafkaConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ function (RdKafkaConsumer $kafka, int $err, string $reason): void {
4747
);
4848

4949
$rebalanceCallback =
50-
/** @param array<string, TopicPartition>|null $partitions */
5150
function (RdKafkaConsumer $kafka, int $err, array|null $partitions = null): void {
51+
/** @phpstan-var array<string, TopicPartition>|null $partitions */
5252
switch ($err) {
5353
case RD_KAFKA_RESP_ERR__ASSIGN_PARTITIONS:
5454
$this->logger->debug(

src/Common/Config.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public function set(string $key, string|int|bool $value): void
3535

3636
public function get(string $key): string
3737
{
38-
return $this->conf->dump()[$key];
38+
/** @var array<string, string> $dumped */
39+
$dumped = $this->conf->dump();
40+
41+
return $dumped[$key];
3942
}
4043
}

0 commit comments

Comments
 (0)