Skip to content

Commit c56818a

Browse files
authored
Upgrade CS (#17)
1 parent 369e2ee commit c56818a

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"psr/log": "^1.1"
2020
},
2121
"require-dev": {
22-
"doctrine/coding-standard": "^8.2",
22+
"doctrine/coding-standard": "^9.0",
2323
"infection/infection": "^0.23.0",
2424
"kwn/php-rdkafka-stubs": "^2.0",
2525
"phpstan/extension-installer": "^1.1",

src/Common/Config.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ public function getConf(): Conf
2020
return $this->conf;
2121
}
2222

23-
/**
24-
* @param string|int|bool $value
25-
*/
26-
public function set(string $key, $value): void
23+
public function set(string $key, string|int|bool $value): void
2724
{
2825
if ($value === true) {
2926
$value = 'true';

tests/Common/ConfigTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111
final class ConfigTest extends TestCase
1212
{
1313
/**
14-
* @param mixed $value
15-
*
1614
* @dataProvider providerSet
1715
*/
18-
public function testSet($value, string $expected): void
16+
public function testSet(bool|int|string $value, string $expected): void
1917
{
2018
$config = new ConsumerConfig();
2119
$config->set(ConsumerConfig::GROUP_ID_CONFIG, $value);

0 commit comments

Comments
 (0)