Skip to content

Commit 812e693

Browse files
authored
Upgrade phpstan (#1458)
* Upgrade phpstan * Remove dead generated code The isset check ensures that this value is not null or missing. * Remove dead code * Fix the case when calling the fixCs method
1 parent 5c08f3d commit 812e693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Connector/AsyncAwsSqsConnector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public function connect(array $config)
1818
{
1919
$clientConfig = [];
2020
if (isset($config['key']) && isset($config['secret'])) {
21-
$clientConfig['accessKeyId'] = $config['key'] ?? null;
22-
$clientConfig['accessKeySecret'] = $config['secret'] ?? null;
21+
$clientConfig['accessKeyId'] = $config['key'];
22+
$clientConfig['accessKeySecret'] = $config['secret'];
2323
$clientConfig['sessionToken'] = $config['token'] ?? null;
2424
}
2525

0 commit comments

Comments
 (0)