Skip to content

Commit 406b037

Browse files
authored
Version constant php7.4+ (#52)
fixes #49
1 parent 084d6f1 commit 406b037

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/GetStream/StreamChat/Client.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
use GuzzleHttp\Psr7\Uri;
1212
use GuzzleHttp\Psr7\MultipartStream;
1313

14-
const VERSION = '2.1.0';
14+
class Constant
15+
{
16+
const VERSION = '2.1.0';
17+
}
1518

1619
class Client
1720
{
@@ -166,7 +169,7 @@ protected function getHttpRequestHeaders()
166169
'Authorization' => $this->authToken,
167170
'Content-Type' => 'application/json',
168171
'stream-auth-type' => 'jwt',
169-
'X-Stream-Client' => 'stream-chat-php-client-' . VERSION,
172+
'X-Stream-Client' => 'stream-chat-php-client-' . Constant::VERSION,
170173
];
171174
}
172175

0 commit comments

Comments
 (0)