Skip to content

Commit

Permalink
Improve return type of UserEntityInterface::getId(). (#3599)
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Apr 19, 2024
1 parent 1d5e242 commit dd107ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions module/VuFind/src/VuFind/Db/Entity/UserEntityInterface.php
Expand Up @@ -41,11 +41,11 @@
interface UserEntityInterface extends EntityInterface
{
/**
* Get identifier.
* Get identifier (returns null for an uninitialized or non-persisted object).
*
* @return int
* @return ?int
*/
public function getId();
public function getId(): ?int;

/**
* Username setter
Expand Down
6 changes: 3 additions & 3 deletions module/VuFind/src/VuFind/Db/Row/User.php
Expand Up @@ -789,11 +789,11 @@ public function getLoginTokens(string $userId): array
}

/**
* Get identifier.
* Get identifier (returns null for an uninitialized or non-persisted object).
*
* @return int
* @return ?int
*/
public function getId()
public function getId(): ?int
{
return $this->id;
}
Expand Down

0 comments on commit dd107ef

Please sign in to comment.