diff --git a/lib/Db/PublicKeyCredentialEntity.php b/lib/Db/PublicKeyCredentialEntity.php index 9398a07d..6bf1424d 100644 --- a/lib/Db/PublicKeyCredentialEntity.php +++ b/lib/Db/PublicKeyCredentialEntity.php @@ -118,9 +118,9 @@ class PublicKeyCredentialEntity extends Entity { protected $createdAt; public function __construct() { - $this->addType('counter', 'int'); + $this->addType('counter', 'integer'); $this->addType('active', 'boolean'); - $this->addType('createdAt', 'int'); + $this->addType('createdAt', 'integer'); } public static function fromPublicKeyCrendentialSource(string $name, diff --git a/lib/Db/Registration.php b/lib/Db/Registration.php index a49ce187..c3b7e7e2 100644 --- a/lib/Db/Registration.php +++ b/lib/Db/Registration.php @@ -40,7 +40,7 @@ class Registration extends Entity implements JsonSerializable { protected $name; public function __construct() { - $this->addType('counter', 'int'); + $this->addType('counter', 'integer'); } public function jsonSerialize(): array {