getIncompatibleApps needs a string not an array

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/8471/head
Roeland Jago Douma 7 years ago
parent 09857e5a95
commit 4a41e0cc42
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 1
      lib/base.php
  2. 2
      lib/private/App/AppManager.php

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

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

Loading…
Cancel
Save