Mark getAppPath as specialized taint

Should remove some false positives.

https://psalm.dev/docs/security_analysis/avoiding_false_positives/

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2020-11-21 01:11:37 +00:00 committed by GitHub
parent db3a3bee37
commit d25ca1976b
1 changed files with 2 additions and 0 deletions

View File

@ -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()