Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 9db18d2

Browse files
authored
Merge pull request #4 from kirschbaum-development/php-8
Add PHP 8 compatibility
2 parents 646ba58 + 2727ecb commit 9db18d2

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ build
22
composer.lock
33
docs
44
vendor
5-
coverage
5+
coverage
6+
.phpunit.result.cache

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.1",
19+
"php": "^7.1|^8.0",
2020
"guzzlehttp/guzzle": "^6.3|^7.0"
2121
},
2222
"require-dev": {
2323
"cache/array-adapter": "^1.0",
24-
"phpunit/phpunit": "^7.0"
24+
"phpunit/phpunit": "^7.0|^9.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

src/Bee.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Bee
2323
protected $apiToken;
2424

2525
/**
26-
* @param \GuzzleHttp\Client $httpClient
26+
* @param \GuzzleHttp\Client $httpClient
2727
*/
2828
public function __construct(GuzzleClient $httpClient)
2929
{
@@ -33,7 +33,7 @@ public function __construct(GuzzleClient $httpClient)
3333
/**
3434
* Set the API token.
3535
*
36-
* @param string $clientId
36+
* @param string $clientId
3737
*/
3838
public function setApiToken($apiToken)
3939
{
@@ -45,7 +45,7 @@ public function setApiToken($apiToken)
4545
/**
4646
* Message API: Generate HTML from the JSON content.
4747
*
48-
* @param array $json
48+
* @param array $json
4949
* @return string
5050
*/
5151
public function html(array $json)
@@ -66,7 +66,7 @@ public function html(array $json)
6666
/**
6767
* Message API: Generate PDF from the JSON content.
6868
*
69-
* @param array $payload
69+
* @param array $payload
7070
* @return string
7171
*/
7272
public function pdf(array $payload)
@@ -91,7 +91,7 @@ public function pdf(array $payload)
9191
/**
9292
* Message API: Generate image from the JSON content.
9393
*
94-
* @param array $payload
94+
* @param array $payload
9595
* @return string
9696
*/
9797
public function image(array $payload)
@@ -112,7 +112,7 @@ public function image(array $payload)
112112
/**
113113
* Return the default headers.
114114
*
115-
* @param array $headers
115+
* @param array $headers
116116
* @return array
117117
*/
118118
protected function formatHeaders($headers = [])

src/BeeAuth.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class BeeAuth
3333
protected $cache;
3434

3535
/**
36-
* @param \GuzzleHttp\Client $httpClient
36+
* @param \GuzzleHttp\Client $httpClient
3737
*/
3838
public function __construct(GuzzleClient $httpClient)
3939
{
@@ -43,7 +43,7 @@ public function __construct(GuzzleClient $httpClient)
4343
/**
4444
* Set client ID.
4545
*
46-
* @param string $clientId
46+
* @param string $clientId
4747
*/
4848
public function setClientId($clientId)
4949
{
@@ -55,7 +55,7 @@ public function setClientId($clientId)
5555
/**
5656
* Set client secret.
5757
*
58-
* @param string $clientSecret
58+
* @param string $clientSecret
5959
*/
6060
public function setClientSecret($clientSecret)
6161
{
@@ -67,7 +67,7 @@ public function setClientSecret($clientSecret)
6767
/**
6868
* Set the cache.
6969
*
70-
* @param Psr\SimpleCache\CacheInterface $cache
70+
* @param Psr\SimpleCache\CacheInterface $cache
7171
*/
7272
public function setCache(CacheInterface $cache)
7373
{

0 commit comments

Comments
 (0)