Skip to content

Commit ef9348e

Browse files
committed
Upgrade to php 8.1
Use phpunit:10
1 parent 68ccc74 commit ef9348e

31 files changed

Lines changed: 273 additions & 447 deletions

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
}
1919
],
2020
"require": {
21-
"php": ">=8.0",
21+
"php": ">=8.1",
2222
"firebase/php-jwt": "~5.0 || ~6.0",
2323
"ext-curl": "*"
2424
},
2525
"require-dev": {
2626
"friendsofphp/php-cs-fixer": "^3.13",
2727
"php-coveralls/php-coveralls": "2.5",
28-
"phpunit/phpunit": "^9.5",
29-
"phpstan/phpstan": "^1.10"
28+
"phpunit/phpunit": "^10.0",
29+
"phpstan/phpstan": "^1.10",
30+
"rector/rector": "^0.19.0"
3031
},
3132
"autoload": {
3233
"psr-0": {

src/Bigcommerce/Api/Connection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,8 @@ public function getHeaders()
609609
*/
610610
public function __destruct()
611611
{
612-
curl_close($this->curl);
612+
if ($this->curl !== null) {
613+
curl_close($this->curl);
614+
}
613615
}
614616
}

0 commit comments

Comments
 (0)