Skip to content

Commit

Permalink
add array to @return tag to support composite primary keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Voronyi committed Jul 3, 2023
1 parent 67ffe7c commit 742e2df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IdentityInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface IdentityInterface extends ArrayAccess
/**
* Get the primary key/id field for the identity.
*
* @return string|int|null
* @return string|int|array|null
*/
public function getIdentifier();

Expand Down
2 changes: 1 addition & 1 deletion src/View/Helper/IdentityHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function initialize(array $config): void
/**
* Gets the id of the current logged in identity
*
* @return int|null|string
* @return string|int|array|null
*/
public function getId()
{
Expand Down

0 comments on commit 742e2df

Please sign in to comment.