summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Veyssier <julien-nc@posteo.net>2023-03-30 14:55:51 +0200
committerGitHub <noreply@github.com>2023-03-30 14:55:51 +0200
commit636c2415cc8b119c89af5b59d2a9457f87d7cf0d (patch)
tree7b260135785c4b06353087c53f5bc33a0dfb066d
parent2811532e83a06534af408a3507bf8c79b6c10862 (diff)
parent02f9c3a06f1087a19cd255c7544a30b444c18558 (diff)
downloadnextcloud-server-636c2415cc8b119c89af5b59d2a9457f87d7cf0d.tar.gz
nextcloud-server-636c2415cc8b119c89af5b59d2a9457f87d7cf0d.zip
Merge pull request #37452 from nextcloud/fix/missing-interface-methods
Add missing interface methods
-rw-r--r--apps/dav/lib/CalDAV/CachedSubscription.php5
-rw-r--r--apps/dav/lib/CardDAV/AddressBook.php2
-rw-r--r--apps/provisioning_api/lib/Controller/AUserData.php2
-rw-r--r--core/Controller/LoginController.php2
-rw-r--r--lib/private/Collaboration/Resources/Collection.php2
-rw-r--r--lib/private/NavigationManager.php2
-rw-r--r--lib/private/Repair/NC16/ClearCollectionsAccessCache.php2
-rw-r--r--lib/private/Updater.php3
8 files changed, 9 insertions, 11 deletions
diff --git a/apps/dav/lib/CalDAV/CachedSubscription.php b/apps/dav/lib/CalDAV/CachedSubscription.php
index f42b5f97f5d..dc7f66e59b4 100644
--- a/apps/dav/lib/CalDAV/CachedSubscription.php
+++ b/apps/dav/lib/CalDAV/CachedSubscription.php
@@ -28,7 +28,6 @@ declare(strict_types=1);
namespace OCA\DAV\CalDAV;
use OCA\DAV\Exception\UnsupportedLimitOnInitialSyncException;
-use Sabre\CalDAV\Backend\BackendInterface;
use Sabre\DAV\Exception\MethodNotAllowed;
use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\INode;
@@ -38,7 +37,7 @@ use Sabre\DAV\PropPatch;
* Class CachedSubscription
*
* @package OCA\DAV\CalDAV
- * @property BackendInterface|CalDavBackend $caldavBackend
+ * @property CalDavBackend $caldavBackend
*/
class CachedSubscription extends \Sabre\CalDAV\Calendar {
@@ -112,7 +111,7 @@ class CachedSubscription extends \Sabre\CalDAV\Calendar {
return parent::getOwner();
}
-
+
public function delete() {
$this->caldavBackend->deleteSubscription($this->calendarInfo['id']);
}
diff --git a/apps/dav/lib/CardDAV/AddressBook.php b/apps/dav/lib/CardDAV/AddressBook.php
index bca478feec1..f08a7b4b525 100644
--- a/apps/dav/lib/CardDAV/AddressBook.php
+++ b/apps/dav/lib/CardDAV/AddressBook.php
@@ -38,7 +38,7 @@ use Sabre\DAV\PropPatch;
* Class AddressBook
*
* @package OCA\DAV\CardDAV
- * @property BackendInterface|CardDavBackend $carddavBackend
+ * @property CardDavBackend $carddavBackend
*/
class AddressBook extends \Sabre\CardDAV\AddressBook implements IShareable {
diff --git a/apps/provisioning_api/lib/Controller/AUserData.php b/apps/provisioning_api/lib/Controller/AUserData.php
index bbb3abe3c24..e7496c6c5ed 100644
--- a/apps/provisioning_api/lib/Controller/AUserData.php
+++ b/apps/provisioning_api/lib/Controller/AUserData.php
@@ -66,7 +66,7 @@ abstract class AUserData extends OCSController {
protected $userManager;
/** @var IConfig */
protected $config;
- /** @var IGroupManager|Manager */ // FIXME Requires a method that is not on the interface
+ /** @var Manager */
protected $groupManager;
/** @var IUserSession */
protected $userSession;
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index 2ddba2bb98a..aa6617c4b6d 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -66,7 +66,7 @@ class LoginController extends Controller {
private IUserManager $userManager;
private IConfig $config;
private ISession $session;
- /** @var IUserSession|Session */
+ /** @var Session */
private $userSession;
private IURLGenerator $urlGenerator;
private Defaults $defaults;
diff --git a/lib/private/Collaboration/Resources/Collection.php b/lib/private/Collaboration/Resources/Collection.php
index 2e67c041566..e34c38a80cd 100644
--- a/lib/private/Collaboration/Resources/Collection.php
+++ b/lib/private/Collaboration/Resources/Collection.php
@@ -37,7 +37,7 @@ use OCP\IDBConnection;
use OCP\IUser;
class Collection implements ICollection {
- /** @var IManager|Manager */
+ /** @var Manager */
protected $manager;
/** @var IDBConnection */
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php
index e3d5ac752d8..2050244d384 100644
--- a/lib/private/NavigationManager.php
+++ b/lib/private/NavigationManager.php
@@ -61,7 +61,7 @@ class NavigationManager implements INavigationManager {
private $l10nFac;
/** @var IUserSession */
private $userSession;
- /** @var IGroupManager|Manager */
+ /** @var Manager */
private $groupManager;
/** @var IConfig */
private $config;
diff --git a/lib/private/Repair/NC16/ClearCollectionsAccessCache.php b/lib/private/Repair/NC16/ClearCollectionsAccessCache.php
index 8bc73c8f66b..51a63406d22 100644
--- a/lib/private/Repair/NC16/ClearCollectionsAccessCache.php
+++ b/lib/private/Repair/NC16/ClearCollectionsAccessCache.php
@@ -35,7 +35,7 @@ class ClearCollectionsAccessCache implements IRepairStep {
/** @var IConfig */
private $config;
- /** @var IManager|Manager */
+ /** @var Manager */
private $manager;
public function __construct(IConfig $config, IManager $manager) {
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index 45a5b4c2160..45c22dc89bc 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -40,7 +40,6 @@ declare(strict_types=1);
*/
namespace OC;
-use OCP\App\IAppManager;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\HintException;
@@ -274,7 +273,7 @@ class Updater extends BasicEmitter {
// Update the appfetchers version so it downloads the correct list from the appstore
\OC::$server->getAppFetcher()->setVersion($currentVersion);
- /** @var IAppManager|AppManager $appManager */
+ /** @var AppManager $appManager */
$appManager = \OC::$server->getAppManager();
// upgrade appstore apps