Skip to content

Commit 77b2fc0

Browse files
authored
Update Client.php
if not exists storage_path function
1 parent 35c1db2 commit 77b2fc0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Client.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ public function __construct($config)
1717
{
1818
$this->config = $config;
1919
$this->company_id = $this->config['company_id'];
20-
if (function_exists('storage_path')) {
21-
$this->file = storage_path('token.ini');
22-
}
20+
$this->file = function_exists('storage_path') ? storage_path('token.ini') : realpath(DIR . '/token.ini');
2321
$this->checkTokens();
2422
}
2523

0 commit comments

Comments
 (0)