Skip to content

Commit 6dcd447

Browse files
🐛 fix: Compatibility with php v7.x
1 parent 77a8ba1 commit 6dcd447

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Efi/ApiRequest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
class ApiRequest extends BaseModel
1010
{
11-
private Auth $auth;
12-
private CacheRetriever $cache;
13-
private Request $request;
14-
private array $options;
15-
private ?string $cacheAccessToken = null;
16-
private ?int $cacheAccessTokenExpires = null;
11+
private $auth;
12+
private $cache;
13+
private $request;
14+
private $options;
15+
private $cacheAccessToken = null;
16+
private $cacheAccessTokenExpires = null;
1717

1818
/**
1919
* Initializes a new instance of the ApiRequest class.

src/Efi/Security.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function encrypt($data): string
3636
* Decrypts the data using OpenSSL.
3737
*
3838
* @param string $data - The encrypted data.
39-
* @return string|false The decrypted data or false if decryption fails.
39+
* @return string|bool The decrypted data or false if decryption fails.
4040
*/
41-
public function decrypt($data): string|bool
41+
public function decrypt($data)
4242
{
4343
if ($data === null) {
4444
return false;

0 commit comments

Comments
 (0)