diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php
index f7fdda66482ff61ecb23d0754d9db544f36c0fee..99d93b569ba299cc9d617b9d7677e9caa5d85ecd 100644
--- a/lib/private/legacy/OC_App.php
+++ b/lib/private/legacy/OC_App.php
@@ -517,6 +517,8 @@ class OC_App {
 	 * Get the directory for the given app.
 	 * If the app is defined in multiple directories, the first one is taken. (false if not found)
 	 *
+	 * @psalm-taint-specialize
+	 *
 	 * @param string $appId
 	 * @return string|false
 	 * @deprecated 11.0.0 use \OC::$server->getAppManager()->getAppPath()