]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make the UserStatusMapper a generic instance of QBMapper 30441/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Wed, 29 Dec 2021 14:40:06 +0000 (15:40 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Wed, 29 Dec 2021 14:40:06 +0000 (15:40 +0100)
This removes our manual overrides and helps static analysis.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
apps/user_status/lib/Db/UserStatusMapper.php

index ce3a2823bce4170e112907aa9669e0615acf782d..51f1b270b452399f65acfec53b33ad05ba932855 100644 (file)
@@ -23,6 +23,7 @@ declare(strict_types=1);
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  *
  */
+
 namespace OCA\UserStatus\Db;
 
 use OCP\AppFramework\Db\QBMapper;
@@ -31,14 +32,7 @@ use OCP\IDBConnection;
 use OCP\UserStatus\IUserStatus;
 
 /**
- * Class UserStatusMapper
- *
- * @package OCA\UserStatus\Db
- *
- * @method UserStatus insert(UserStatus $entity)
- * @method UserStatus update(UserStatus $entity)
- * @method UserStatus insertOrUpdate(UserStatus $entity)
- * @method UserStatus delete(UserStatus $entity)
+ * @template-extends QBMapper<UserStatus>
  */
 class UserStatusMapper extends QBMapper {