From 742e2df02152ae069ef02dd29be1cc12d8439445 Mon Sep 17 00:00:00 2001 From: Oleksii Voronyi Date: Mon, 3 Jul 2023 17:35:51 +0300 Subject: [PATCH] add array to @return tag to support composite primary keys --- src/IdentityInterface.php | 2 +- src/View/Helper/IdentityHelper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IdentityInterface.php b/src/IdentityInterface.php index 043ca01f..2aa3af6a 100644 --- a/src/IdentityInterface.php +++ b/src/IdentityInterface.php @@ -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(); diff --git a/src/View/Helper/IdentityHelper.php b/src/View/Helper/IdentityHelper.php index eea4ab8a..573af692 100644 --- a/src/View/Helper/IdentityHelper.php +++ b/src/View/Helper/IdentityHelper.php @@ -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() {