From 450143cd41530a020781cd3883375e5fb414ef72 Mon Sep 17 00:00:00 2001 From: Frank de Jonge Date: Mon, 9 Mar 2020 08:34:24 +0100 Subject: [PATCH] Require stable mime-detection --- composer.json | 2 +- src/AwsS3V3/composer.json | 1 + src/FTP/composer.json | 3 ++- src/PHPSecLibV2/SftpAdapter.php | 1 - src/PHPSecLibV2/composer.json | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 792875300..1da55a373 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "require": { "php": "^7.2", "ext-json": "*", - "league/mime-type-detection": "dev-master" + "league/mime-type-detection": "^1.0.0" }, "require-dev": { "phpunit/phpunit": "^8.5", diff --git a/src/AwsS3V3/composer.json b/src/AwsS3V3/composer.json index b3d600406..76a2fc6c4 100644 --- a/src/AwsS3V3/composer.json +++ b/src/AwsS3V3/composer.json @@ -11,6 +11,7 @@ "require": { "php": "^7.2", "league/flysystem": "2.0.0-alpha.1", + "league/mime-type-detection": "^1.0.0", "aws/aws-sdk-php": "^3.132.4" }, "conflict": { diff --git a/src/FTP/composer.json b/src/FTP/composer.json index 1b3e634c4..36e4618de 100644 --- a/src/FTP/composer.json +++ b/src/FTP/composer.json @@ -11,7 +11,8 @@ }, "require": { "php": "^7.2", - "league/flysystem": "2.0.0-alpha.1" + "league/flysystem": "2.0.0-alpha.1", + "league/mime-type-detection": "^1.0.0" }, "license": "MIT", "authors": [ diff --git a/src/PHPSecLibV2/SftpAdapter.php b/src/PHPSecLibV2/SftpAdapter.php index b0924738e..8afc8bc0a 100644 --- a/src/PHPSecLibV2/SftpAdapter.php +++ b/src/PHPSecLibV2/SftpAdapter.php @@ -10,7 +10,6 @@ use League\Flysystem\FileAttributes; use League\Flysystem\FilesystemAdapter; use League\Flysystem\FilesystemException; -use League\Flysystem\MimeType; use League\Flysystem\PathPrefixer; use League\Flysystem\StorageAttributes; use League\Flysystem\UnableToCopyFile; diff --git a/src/PHPSecLibV2/composer.json b/src/PHPSecLibV2/composer.json index 1a250bbf8..c4a83882a 100644 --- a/src/PHPSecLibV2/composer.json +++ b/src/PHPSecLibV2/composer.json @@ -10,6 +10,7 @@ "require": { "php": "^7.2", "league/flysystem": "2.0.0-alpha.1", + "league/mime-type-detection": "^1.0.0", "phpseclib/phpseclib": "^2.0" }, "license": "MIT",