New Upstream Release - php-league-mime-type-detection

Ready changes

Summary

Merged new upstream version: 1.11.0+ds (was: 1.10.0+ds).

Resulting package

Built on 2022-12-14T02:47 (took 3m32s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases php-league-mime-type-detection

Lintian Result

Diff

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..5934914
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,16 @@
+* text=auto
+
+/phpstan.neon export-ignore
+/bin export-ignore
+/.github export-ignore
+/.php-cs-fixer.dist.php export-ignore
+/.scrutinizer.yml export-ignore
+/src/Generation export-ignore
+/test_files export-ignore
+/.gitattributes export-ignore
+/.gitignore export-ignore
+/.travis.yml export-ignore
+/**/*Test.php export-ignore
+/phpunit.php export-ignore
+/phpunit.xml.dist export-ignore
+/readme.md export-ignore
diff --git a/debian/changelog b/debian/changelog
index 5b028fb..146d42c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+php-league-mime-type-detection (1.11.0+ds-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Wed, 14 Dec 2022 02:44:35 -0000
+
 php-league-mime-type-detection (1.10.0+ds-1) unstable; urgency=medium
 
   * New upstream version 1.10.0+ds
diff --git a/debian/patches/0001-Use-local-mime-db-instead-of-downloading-one.patch b/debian/patches/0001-Use-local-mime-db-instead-of-downloading-one.patch
index 9a92493..00dadea 100644
--- a/debian/patches/0001-Use-local-mime-db-instead-of-downloading-one.patch
+++ b/debian/patches/0001-Use-local-mime-db-instead-of-downloading-one.patch
@@ -9,11 +9,11 @@ Forwarded: not-needed
  src/Generation/JsHttpMimeDBMimeTypeProvider.php | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/src/Generation/JsHttpMimeDBMimeTypeProvider.php b/src/Generation/JsHttpMimeDBMimeTypeProvider.php
-index 0a10fa1..0eec89f 100644
---- a/src/Generation/JsHttpMimeDBMimeTypeProvider.php
-+++ b/src/Generation/JsHttpMimeDBMimeTypeProvider.php
-@@ -9,7 +9,7 @@ class JsHttpMimeDBMimeTypeProvider implements MimeTypeProvider
+Index: php-league-mime-type-detection.git/src/Generation/JsHttpMimeDBMimeTypeProvider.php
+===================================================================
+--- php-league-mime-type-detection.git.orig/src/Generation/JsHttpMimeDBMimeTypeProvider.php
++++ php-league-mime-type-detection.git/src/Generation/JsHttpMimeDBMimeTypeProvider.php
+@@ -9,7 +9,7 @@ class JsHttpMimeDBMimeTypeProvider imple
      public function provideMimeTypes(): array
      {
          $result = [];
diff --git a/debian/patches/0002-Skip-generated-map-should-be-up-to-date-test.patch b/debian/patches/0002-Skip-generated-map-should-be-up-to-date-test.patch
index 6a17911..d337f4e 100644
--- a/debian/patches/0002-Skip-generated-map-should-be-up-to-date-test.patch
+++ b/debian/patches/0002-Skip-generated-map-should-be-up-to-date-test.patch
@@ -11,11 +11,11 @@ Forwarded: not-needed
  src/GeneratedExtensionToMimeTypeMapTest.php | 2 ++
  1 file changed, 2 insertions(+)
 
-diff --git a/src/GeneratedExtensionToMimeTypeMapTest.php b/src/GeneratedExtensionToMimeTypeMapTest.php
-index 0968a33..cfc99fd 100644
---- a/src/GeneratedExtensionToMimeTypeMapTest.php
-+++ b/src/GeneratedExtensionToMimeTypeMapTest.php
-@@ -36,6 +36,8 @@ class GeneratedExtensionToMimeTypeMapTest extends TestCase
+Index: php-league-mime-type-detection.git/src/GeneratedExtensionToMimeTypeMapTest.php
+===================================================================
+--- php-league-mime-type-detection.git.orig/src/GeneratedExtensionToMimeTypeMapTest.php
++++ php-league-mime-type-detection.git/src/GeneratedExtensionToMimeTypeMapTest.php
+@@ -36,6 +36,8 @@ class GeneratedExtensionToMimeTypeMapTes
       */
      public function the_generated_map_should_be_up_to_date(): void
      {
diff --git a/src/FinfoMimeTypeDetectorTest.php b/src/FinfoMimeTypeDetectorTest.php
index 02b6cab..5e3fbd6 100644
--- a/src/FinfoMimeTypeDetectorTest.php
+++ b/src/FinfoMimeTypeDetectorTest.php
@@ -18,6 +18,16 @@ class FinfoMimeTypeDetectorTest extends TestCase
         $this->detector = new FinfoMimeTypeDetector();
     }
 
+    /**
+     * @test
+     */
+    public function detecting_a_csv(): void
+    {
+        $mimeType = $this->detector->detectMimeType('something.csv', '');
+
+        $this->assertEquals('text/csv', $mimeType);
+    }
+
     /**
      * @test
      */
diff --git a/src/Generation/FlysystemProvidedMimeTypeProvider.php b/src/Generation/FlysystemProvidedMimeTypeProvider.php
index da45f0a..a5b2736 100644
--- a/src/Generation/FlysystemProvidedMimeTypeProvider.php
+++ b/src/Generation/FlysystemProvidedMimeTypeProvider.php
@@ -12,6 +12,7 @@ class FlysystemProvidedMimeTypeProvider implements MimeTypeProvider
             new MimeTypeForExtension('application/mac-binhex40', 'hqx'),
             new MimeTypeForExtension('application/mac-compactpro', 'cpt'),
             new MimeTypeForExtension('text/csv', 'csv'),
+            new MimeTypeForExtension('application/octet-stream', 'phar'),
             new MimeTypeForExtension('application/octet-stream', 'bin'),
             new MimeTypeForExtension('application/octet-stream', 'dms'),
             new MimeTypeForExtension('application/octet-stream', 'lha'),

More details

Full run details