Skip to content

Commit be4a990

Browse files
committed
try to satisfy psalm
1 parent 31ccc2e commit be4a990

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/AbstractLapiClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
abstract class AbstractLapiClient extends AbstractClient
1616
{
1717
/**
18-
* @var TBouncerConfig
18+
* @var array|TBouncerConfig
1919
*/
2020
protected $configs;
2121
/**
@@ -30,7 +30,7 @@ public function __construct(
3030
) {
3131
$this->configure($configs);
3232
$this->headers = [Constants::HEADER_LAPI_USER_AGENT => $this->formatUserAgent($this->configs)];
33-
if (!empty($this->configs['api_key'])) {
33+
if (isset($this->configs['api_key'])) {
3434
$this->headers[Constants::HEADER_LAPI_API_KEY] = $this->configs['api_key'];
3535
}
3636
parent::__construct($this->configs, $requestHandler, $logger);

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
*/
4141
class Configuration extends AbstractConfiguration
4242
{
43-
/** @var list<string> The list of each configuration tree key */
43+
/** @var string[] The list of each configuration tree key */
4444
protected $keys = [
4545
'user_agent_suffix',
4646
'user_agent_version',

0 commit comments

Comments
 (0)