cast to int
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
bb65d3b03d
commit
a4ea20a259
|
@ -122,8 +122,8 @@ class DefaultToken extends Entity implements IToken {
|
|||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
'lastActivity' => $this->lastActivity,
|
||||
'type' => $this->type,
|
||||
'lastActivity' => (int)$this->lastActivity,
|
||||
'type' => (int)$this->type,
|
||||
'scope' => $this->getScopeAsArray()
|
||||
];
|
||||
}
|
||||
|
|
|
@ -94,8 +94,8 @@ class AuthSettingsControllerTest extends TestCase {
|
|||
[
|
||||
'id' => 100,
|
||||
'name' => null,
|
||||
'lastActivity' => null,
|
||||
'type' => null,
|
||||
'lastActivity' => 0,
|
||||
'type' => 0,
|
||||
'canDelete' => false,
|
||||
'current' => true,
|
||||
'scope' => ['filesystem' => true]
|
||||
|
@ -103,8 +103,8 @@ class AuthSettingsControllerTest extends TestCase {
|
|||
[
|
||||
'id' => 200,
|
||||
'name' => null,
|
||||
'lastActivity' => null,
|
||||
'type' => null,
|
||||
'lastActivity' => 0,
|
||||
'type' => 0,
|
||||
'canDelete' => true,
|
||||
'scope' => ['filesystem' => true]
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue