diff --git a/Makefile b/Makefile index 41670cd..2ecf65c 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ DOCKER := $(if $(LRN_SDK_NO_DOCKER),,$(shell which docker)) DOCKER_COMPOSE := docker compose # PHP Evolution -SUPPORTED_PHP_VERSIONS = 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 +SUPPORTED_PHP_VERSIONS = 8.2 8.3 8.4 8.5 PHP_VERSION ?= $(lastword ${SUPPORTED_PHP_VERSIONS}) DEBIAN_VERSION-7.1 = buster DEBIAN_VERSION-7.2 = buster diff --git a/composer.json b/composer.json index 1ee4b79..3aae86e 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "learnosity/learnosity-sdk-php", "type": "library", "description": "Include this package into your own codebase to ease integration with any of the Learnosity APIs", - "keywords": ["learnosity", "sdk", "php7", "php8"], + "keywords": ["learnosity", "sdk", "php8"], "homepage": "https://github.com/Learnosity/learnosity-sdk-php", "license": "Apache-2.0", "autoload": { @@ -16,7 +16,7 @@ } }, "require": { - "php": ">=7.2", + "php": ">=8.2", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*" diff --git a/docker-compose.yml b/docker-compose.yml index 62d0e0e..56a7ae1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - networks: quickstart-network: driver: bridge diff --git a/src/Request/Remote.php b/src/Request/Remote.php index 531d62f..fafc53f 100644 --- a/src/Request/Remote.php +++ b/src/Request/Remote.php @@ -212,8 +212,6 @@ public function request(string $url, array $post = []) $error_message = curl_error($ch); $response = curl_getinfo($ch); - curl_close($ch); - $response['error_code'] = $error_code; $response['error_message'] = $error_message; $response['body'] = $body;