Skip to content

Commit

Permalink
Merge pull request #625 from voronoy/2.x-composite-pk
Browse files Browse the repository at this point in the history
add array to `return` tag to support composite primary keys
  • Loading branch information
markstory authored Jul 4, 2023
2 parents 67ffe7c + 742e2df commit 16936e3
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 16936e3

Please sign in to comment.