diff --git a/.drone.yml b/.drone.yml
index f0a06776e6baa8ecaeaf44d8b4af82bc0f840d03..fe86379e1b0d6a7740276a13a76fa02508af42ff 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -46,7 +46,9 @@ pipeline:
   phan:
     image: nextcloudci/php7.0:php7.0-13
     commands:
+      - rm /etc/php/7.0/cli/conf.d/20-xdebug.ini
       - composer install
+      - composer require --dev "etsy/phan:0.8.x-dev"
       - ./lib/composer/etsy/phan/phan -k build/.phan/config.php
     when:
       matrix:
diff --git a/composer.json b/composer.json
index c8fbcf6b57eab2b63d1c32bbeed3e242c29c6f90..c75586ee1052808c0a28c3308c91352b6b794fc2 100644
--- a/composer.json
+++ b/composer.json
@@ -13,7 +13,6 @@
     },
     "require-dev": {
         "jakub-onderka/php-parallel-lint": "^0.9.2",
-        "jakub-onderka/php-console-highlighter": "^0.3.2",
-        "etsy/phan": "0.8.x-dev"
+        "jakub-onderka/php-console-highlighter": "^0.3.2"
     }
 }