Skip to content

Commit 9d4bfb9

Browse files
authored
Merge pull request #38 from ezoterik/patch-1
Fix error: 'header_client_name' not found in config class
2 parents 6e58720 + ac763a7 commit 9d4bfb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ class Config
2525
*/
2626
public function __construct(array $data)
2727
{
28-
$this->data = $data;
29-
3028
if (!array_key_exists(self::HEADER_CLIENT_NAME, $data)) {
3129
$data[self::HEADER_CLIENT_NAME] = 'Igorbunov Custom SDK';
3230
$data[self::HEADER_CLIENT_VERSION] = '1.3.7';
3331
}
32+
33+
$this->data = $data;
3434
}
3535

3636
public function get(string $name): string

0 commit comments

Comments
 (0)