diff --git a/lib/REST/Miniflux/V1.php b/lib/REST/Miniflux/V1.php
index 4e4c959d..1a529547 100644
--- a/lib/REST/Miniflux/V1.php
+++ b/lib/REST/Miniflux/V1.php
@@ -880,7 +880,7 @@ class V1 extends \JKingWeb\Arsse\REST\AbstractHandler {
             return new ErrorResponse("404", 404);
         }
         return new Response([
-            'id'        => $icon['id'],
+            'id'        => (int) $icon['id'],
             'data'      => $icon['type'].";base64,".base64_encode($icon['data']),
             'mime_type' => $icon['type'],
         ]);
@@ -954,9 +954,9 @@ class V1 extends \JKingWeb\Arsse\REST\AbstractHandler {
         if ($entry['media_url']) {
             $enclosures = [
                 [
-                    'id'        => $entry['id'], // NOTE: We don't have IDs for enclosures, but we also only have one enclosure per entry, so we can just re-use the same ID
+                    'id'        => (int) $entry['id'], // NOTE: We don't have IDs for enclosures, but we also only have one enclosure per entry, so we can just re-use the same ID
                     'user_id'   => $uid,
-                    'entry_id'  => $entry['id'],
+                    'entry_id'  => (int) $entry['id'],
                     'url'       => $entry['media_url'],
                     'mime_type' => $entry['media_type'] ?: "application/octet-stream",
                     'size'      => 0,
diff --git a/tests/cases/REST/Miniflux/PDO/TestV1.php b/tests/cases/REST/Miniflux/PDO/TestV1.php
new file mode 100644
index 00000000..977ffa4e
--- /dev/null
+++ b/tests/cases/REST/Miniflux/PDO/TestV1.php
@@ -0,0 +1,13 @@
+<?php
+/** @license MIT
+ * Copyright 2017 J. King, Dustin Wilson et al.
+ * See LICENSE and AUTHORS files for details */
+
+declare(strict_types=1);
+namespace JKingWeb\Arsse\TestCase\REST\Miniflux\PDO;
+
+/** @covers \JKingWeb\Arsse\REST\Miniflux\V1<extended>
+ * @group optional */
+class TestV1 extends \JKingWeb\Arsse\TestCase\REST\Miniflux\TestV1 {
+    use \JKingWeb\Arsse\Test\PDOTest;
+}
diff --git a/tests/phpunit.dist.xml b/tests/phpunit.dist.xml
index 3d576064..99831a45 100644
--- a/tests/phpunit.dist.xml
+++ b/tests/phpunit.dist.xml
@@ -118,6 +118,7 @@
         <file>cases/REST/Miniflux/TestErrorResponse.php</file>
         <file>cases/REST/Miniflux/TestStatus.php</file>
         <file>cases/REST/Miniflux/TestV1.php</file>
+        <file>cases/REST/Miniflux/PDO/TestV1.php</file>
     </testsuite>
     <testsuite name="NCNv1">
         <file>cases/REST/NextcloudNews/TestVersions.php</file>