]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/OpenWebAuthToken.php
Merge pull request #12638 from annando/collapse
[friendica.git] / src / Model / OpenWebAuthToken.php
index b57356a9864b1a4e56e0b4fca18b6c101e47bd57..e99d40f12f65ccd56af0ee4ec500de37b6df16a1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -39,13 +39,13 @@ class OpenWebAuthToken
         * @return boolean
         * @throws \Exception
         */
-       public static function create(string $type, uid $uid, string $token, string $meta)
+       public static function create(string $type, int $uid, string $token, string $meta)
        {
                $fields = [
-                       'type' => $type,
-                       'uid' => $uid,
-                       'token' => $token,
-                       'meta' => $meta,
+                       'type'    => $type,
+                       'uid'     => $uid,
+                       'token'   => $token,
+                       'meta'    => $meta,
                        'created' => DateTimeFormat::utcNow()
                ];
                return DBA::insert('openwebauth-token', $fields);