From 4e2db2f71c34d9d649a8bec36b088b39f513c955 Mon Sep 17 00:00:00 2001 From: Nicolas COMPAIN Date: Fri, 12 Jan 2024 10:04:08 +0000 Subject: [PATCH] =?UTF-8?q?Compatibilit=C3=A9=20PHP=207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 8 ++++++++ composer.json | 4 ++-- src/FileRequest.php | 6 +++--- src/MultiDownloaderClient.php | 8 ++++---- 4 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a912154 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "intelephense.environment.phpVersion": "7.0", + "php.version": "v7.0", + "php.completion.autoimport": "auto-import", + "php.validate.executablePath": "/usr/local/bin/php", + "php.validate.enable": true, + "php.validate.run": "onType", +} \ No newline at end of file diff --git a/composer.json b/composer.json index 7f4ae3c..6280854 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": ">=8.2" + "php": ">=7.0" }, "require-dev": { "phpunit/phpunit": "*", @@ -24,4 +24,4 @@ "scripts": { "test": "phpunit" } -} +} \ No newline at end of file diff --git a/src/FileRequest.php b/src/FileRequest.php index 896d3c8..b2b7aaa 100644 --- a/src/FileRequest.php +++ b/src/FileRequest.php @@ -4,8 +4,8 @@ namespace Nwb\MultiDownloaderClient; class FileRequest { - private string $url; - private ?string $fallbackUrl; + private $url; + private $fallbackUrl; public function __construct(string $url, string $fallbackUrl = null) { @@ -32,7 +32,7 @@ class FileRequest return $this->url; } - public function getFallbackUrl(): ?string + public function getFallbackUrl(): string { return $this->fallbackUrl; } diff --git a/src/MultiDownloaderClient.php b/src/MultiDownloaderClient.php index 8e4960f..7599982 100644 --- a/src/MultiDownloaderClient.php +++ b/src/MultiDownloaderClient.php @@ -4,11 +4,11 @@ namespace Nwb\MultiDownloaderClient; class MultiDownloaderClient { - private string $url; - private string $apiKey; - private string $apiSecret; + private $url; + private $apiKey; + private $apiSecret; - private array $files = []; + private $files = []; /** * Constructeur pour initialiser la classe avec des options spécifiques. *