Skip to content

Commit 5a48784

Browse files
committed
Add a default
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 31911f4 commit 5a48784

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/private/App/AppManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public function ignoreNextcloudRequirementForApp(string $appId): void {
313313
* @param bool $forceEnable
314314
* @throws AppPathNotFoundException
315315
*/
316-
public function enableApp(string $appId, bool $forceEnable): void {
316+
public function enableApp(string $appId, bool $forceEnable = false): void {
317317
// Check if app exists
318318
$this->getAppPath($appId);
319319

@@ -353,7 +353,7 @@ public function hasProtectedAppType($types) {
353353
* @throws \InvalidArgumentException if app can't be enabled for groups
354354
* @throws AppPathNotFoundException
355355
*/
356-
public function enableAppForGroups(string $appId, array $groups, bool $forceEnable): void {
356+
public function enableAppForGroups(string $appId, array $groups, bool = false): void {
357357
// Check if app exists
358358
$this->getAppPath($appId);
359359

lib/private/Share20/ProviderFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ProviderFactory implements IProviderFactory {
6060
private $shareByCircleProvider = null;
6161
/** @var bool */
6262
private $circlesAreNotAvailable = false;
63-
/** @var \OCA\Spreed\Share\RoomShareProvider */
63+
/** @var \OCA\Talk\Share\RoomShareProvider */
6464
private $roomShareProvider = null;
6565

6666
/**

lib/public/App/IAppManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function isInstalled($appId);
8686
* @throws AppPathNotFoundException
8787
* @since 8.0.0
8888
*/
89-
public function enableApp(string $appId, bool $forceEnable): void;
89+
public function enableApp(string $appId, bool $forceEnable = false): void;
9090

9191
/**
9292
* Whether a list of types contains a protected app type
@@ -106,7 +106,7 @@ public function hasProtectedAppType($types);
106106
* @throws \Exception
107107
* @since 8.0.0
108108
*/
109-
public function enableAppForGroups(string $appId, array $groups, bool $forceEnable): void;
109+
public function enableAppForGroups(string $appId, array $groups, bool $forceEnable = false): void;
110110

111111
/**
112112
* Disable an app for every user

0 commit comments

Comments
 (0)