Skip to content

Commit a52d5c6

Browse files
committed
1.1.1 release
- Fix PHP 8.5 deprecations
1 parent b61c59d commit a52d5c6

File tree

7 files changed

+16
-10
lines changed

7 files changed

+16
-10
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PHPStan
1+
name: PHP-CS-Fixer
22

33
on: [push, pull_request]
44

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
operating-system: ['ubuntu-latest']
12-
php-versions: ['8.2', '8.3', '8.4']
12+
php-versions: ['8.2', '8.3', '8.4', '8.5']
1313

1414
steps:
1515
- uses: actions/checkout@v3

.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
operating-system: ['ubuntu-latest']
12-
php-versions: ['8.2', '8.3', '8.4']
12+
php-versions: ['8.2', '8.3', '8.4', '8.5']
1313

1414
steps:
1515
- name: Setup PHP

.github/workflows/psalm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
operating-system: ['ubuntu-latest']
12-
php-versions: ['8.2', '8.3', '8.4']
12+
php-versions: ['8.2', '8.3', '8.4', '8.5']
1313
steps:
1414
- uses: actions/checkout@v3
1515
- uses: php-actions/composer@v6 # or alternative dependency management

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Semantic versioning 2.0 is followed.
44

5+
# 1.1.1
6+
7+
- Fix PHP 8.5 deprecations
8+
59
# 1.1.0
610

711
- PHP 8.2 support

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ composer require sharkmachine/psr18-shark
1515

1616
## Supported PHP versions
1717

18-
| Library version | PHP 8.2 | PHP 8.3 | PHP 8.4 |
19-
|--------------------------|---------|---------|----------|
20-
| 2.0 (next, not released) | x |||
21-
| 1.x (current version) ||||
18+
| Library version | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
19+
|--------------------------|---------|---------|---------|---------|
20+
| 2.0 (next, not released) | x ||| |
21+
| 1.x (current version) |||| |
2222

2323
## Request mutation
2424

src/Client.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ public function sendRequest(RequestInterface $request): ResponseInterface
7575
$this->curlRequest($request, $responseData);
7676
$response = $this->getResponse($responseData);
7777
} catch (Throwable $ex) {
78-
curl_close($this->curl);
78+
if (PHP_VERSION_ID < 80500) {
79+
curl_close($this->curl);
80+
}
7981
if (null !== $this->transferHandlerCollection) {
8082
foreach ($this->transferHandlerCollection as $handler) {
8183
$handler->handleException($ex);
@@ -93,7 +95,7 @@ public function sendRequest(RequestInterface $request): ResponseInterface
9395
}
9496
}
9597

96-
if (isset($this->curl)) {
98+
if (isset($this->curl) && PHP_VERSION_ID < 80500) {
9799
curl_close($this->curl);
98100
}
99101
return $response;

0 commit comments

Comments
 (0)