From 84be527d39a83b0162d9f8dbfb83f01eb8cfb491 Mon Sep 17 00:00:00 2001 From: ADmad Date: Wed, 4 Oct 2023 22:55:55 +0530 Subject: [PATCH] Fix type --- src/Listener/ViewListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Listener/ViewListener.php b/src/Listener/ViewListener.php index 33e4a20..e7dce5c 100644 --- a/src/Listener/ViewListener.php +++ b/src/Listener/ViewListener.php @@ -606,9 +606,9 @@ protected function _associations(array $whitelist = []): array * * If no value can be found, NULL is returned * - * @return array|string + * @return array|string|int|null */ - protected function _primaryKeyValue(): array|string + protected function _primaryKeyValue(): array|string|int|null { $fields = (array)$this->_model()->getPrimaryKey(); $values = [];