getIncompatibleApps needs a string not an array

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-02-21 13:00:41 +01:00
parent 09857e5a95
commit 4a41e0cc42
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 2 additions and 1 deletions

View File

@ -373,6 +373,7 @@ class OC {
// get third party apps
$ocVersion = \OCP\Util::getVersion();
$ocVersion = implode('.', $ocVersion);
$incompatibleApps = $appManager->getIncompatibleApps($ocVersion);
$incompatibleShippedApps = [];
foreach ($incompatibleApps as $appInfo) {

View File

@ -397,7 +397,7 @@ class AppManager implements IAppManager {
*
* @internal
*/
public function getIncompatibleApps($version) {
public function getIncompatibleApps(string $version): array {
$apps = $this->getInstalledApps();
$incompatibleApps = array();
foreach ($apps as $appId) {