diff --git a/lib/Db/Id4Me.php b/lib/Db/Id4Me.php index d03b6ac3..de401b89 100644 --- a/lib/Db/Id4Me.php +++ b/lib/Db/Id4Me.php @@ -11,12 +11,12 @@ use OCP\AppFramework\Db\Entity; /** - * @method string getIdentifier() - * @method void setIdentifier(string $identifier) - * @method string getClientId() - * @method void setClientId(string $clientId) - * @method string getClientSecret() - * @method void setClientSecret(string $clientSecret) + * @method \string getIdentifier() + * @method \void setIdentifier(string $identifier) + * @method \string getClientId() + * @method \void setClientId(string $clientId) + * @method \string getClientSecret() + * @method \void setClientSecret(string $clientSecret) */ class Id4Me extends Entity { diff --git a/lib/Db/Session.php b/lib/Db/Session.php index 94342756..42e6e605 100644 --- a/lib/Db/Session.php +++ b/lib/Db/Session.php @@ -9,6 +9,7 @@ namespace OCA\UserOIDC\Db; use OCP\AppFramework\Db\Entity; +use OCP\DB\Types; /** * @method \string getSid() @@ -56,16 +57,16 @@ class Session extends Entity implements \JsonSerializable { protected $idpSessionClosed; public function __construct() { - $this->addType('sid', 'string'); - $this->addType('sub', 'string'); - $this->addType('iss', 'string'); - $this->addType('authtoken_id', 'integer'); - $this->addType('nc_session_id', 'string'); - $this->addType('created_at', 'integer'); - $this->addType('id_token', 'string'); - $this->addType('user_id', 'string'); - $this->addType('provider_id', 'integer'); - $this->addType('idp_session_closed', 'integer'); + $this->addType('sid', Types::STRING); + $this->addType('sub', Types::STRING); + $this->addType('iss', Types::STRING); + $this->addType('authtokenId', Types::INTEGER); + $this->addType('ncSessionId', Types::STRING); + $this->addType('createdAt', Types::INTEGER); + $this->addType('idToken', Types::STRING); + $this->addType('userId', Types::STRING); + $this->addType('providerId', Types::INTEGER); + $this->addType('idpSessionClosed', Types::INTEGER); } #[\ReturnTypeWillChange] diff --git a/lib/Db/User.php b/lib/Db/User.php index 69fad505..03126e00 100644 --- a/lib/Db/User.php +++ b/lib/Db/User.php @@ -9,12 +9,13 @@ namespace OCA\UserOIDC\Db; use OCP\AppFramework\Db\Entity; +use OCP\DB\Types; /** - * @method string getUserId() - * @method void setUserId(string $userId) - * @method string getDisplayName() - * @method void setDisplayName(string $displayName) + * @method \string getUserId() + * @method \void setUserId(string $userId) + * @method \string getDisplayName() + * @method \void setDisplayName(string $displayName) */ class User extends Entity { @@ -25,6 +26,6 @@ class User extends Entity { protected $displayName; public function __construct() { - $this->addType('user_id', 'string'); + $this->addType('userId', Types::STRING); } }