summaryrefslogtreecommitdiffstats
path: root/1081.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-10-11 12:05:24 +0200
committerRemi Collet <remi@remirepo.net>2019-10-11 12:05:24 +0200
commite6e4d78f92d2b260eb5eb416588e9a48b82fbd95 (patch)
tree4dd45cc5f86579991f48827f548adcbc1a273067 /1081.patch
parent332d42e42216b223fa877446fdbf2cc91dfe534f (diff)
- add patch for PHP 7.4 from
https://github.com/thephpleague/flysystem/pull/1081
Diffstat (limited to '1081.patch')
-rw-r--r--1081.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/1081.patch b/1081.patch
new file mode 100644
index 0000000..71c0dd4
--- /dev/null
+++ b/1081.patch
@@ -0,0 +1,22 @@
+From 1c4f297d30f51493c6ed54c827ad85132b3c8f61 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Fri, 11 Oct 2019 12:00:18 +0200
+Subject: [PATCH] add 'application/x-empty' for 7.4
+
+---
+ src/Adapter/Local.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Adapter/Local.php b/src/Adapter/Local.php
+index 3236349a..c6e6fa86 100644
+--- a/src/Adapter/Local.php
++++ b/src/Adapter/Local.php
+@@ -319,7 +319,7 @@ public function getMimetype($path)
+ $finfo = new Finfo(FILEINFO_MIME_TYPE);
+ $mimetype = $finfo->file($location);
+
+- if (in_array($mimetype, ['application/octet-stream', 'inode/x-empty'])) {
++ if (in_array($mimetype, ['application/octet-stream', 'inode/x-empty', 'application/x-empty'])) {
+ $mimetype = Util\MimeType::detectByFilename($location);
+ }
+