mirror of
https://github.com/friendica/friendica
synced 2025-04-23 08:30:10 +00:00
Changes:
- fixed wrong type-hint uid => int - added returned type-hint - added some documentation - formatted arrays a bit
This commit is contained in:
parent
5ec407699b
commit
37bda3e5fb
3 changed files with 17 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue