Skip to content

Commit 1efb70d

Browse files
Fix PHP 8.5 deprecation warning (#47)
* Php 8.5 deprecation fix * Add php 8.3,8.4,8.5 to CI and readme * Remove support for PHP 8.0 and 8.1 which are EOL --------- Co-authored-by: sandesh.as <cod48668@adobe.com>
1 parent 1575935 commit 1efb70d

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/php_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
php: [8.0, 8.1, 8.2]
17+
php: [8.2, 8.3, 8.4, 8.5]
1818

1919
steps:
2020
- name: Install additional packages

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
**Accounts** - https://www.duosecurity.com/docs/accountsapi
1010

1111
## Tested Against PHP Versions:
12-
* 8.0
13-
* 8.1
1412
* 8.2
13+
* 8.3
14+
* 8.4
15+
* 8.5
1516

1617
## TLS 1.2 and 1.3 Support
1718

src/CurlRequester.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ public function __construct()
1212
$this->ch = curl_init();
1313
}
1414

15-
public function __destruct()
16-
{
17-
if (isset($this->ch)) {
18-
curl_close($this->ch);
19-
}
20-
}
21-
2215
public function options($options)
2316
{
2417
assert(is_array($options));

0 commit comments

Comments
 (0)