From 5323b56b78f088b9c267bc3a61a21ac168af3890 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Thu, 8 Feb 2024 12:12:01 -0600 Subject: [PATCH] 5.6.1 --- src/Cache/AbstractCache.php | 5 +++-- src/Cli/Router.php | 6 ++++-- src/Filter/Validation.php | 6 +++--- src/Filter/Validation/ValidationInterface.php | 6 +++--- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/Cache/AbstractCache.php b/src/Cache/AbstractCache.php index 5045709..0db74cb 100644 --- a/src/Cache/AbstractCache.php +++ b/src/Cache/AbstractCache.php @@ -114,7 +114,7 @@ protected function doDeleteMultiple($keys): bool * @throws InvalidArgumentException MUST be thrown if the $key string is * not a legal value. */ - protected function doGet(string $key, $defaultValue = null) + protected function doGet(string $key, $defaultValue = null): mixed { } @@ -123,8 +123,9 @@ protected function doGet(string $key, $defaultValue = null) * * @param mixed $keys * @param mixed $defaultValue + * @return array */ - protected function doGetMultiple($keys, $defaultValue = null) + protected function doGetMultiple($keys, $defaultValue = null): array { } diff --git a/src/Cli/Router.php b/src/Cli/Router.php index a925d49..1b27cc8 100644 --- a/src/Cli/Router.php +++ b/src/Cli/Router.php @@ -227,8 +227,9 @@ public function handle($arguments = null) * Sets the default action name * * @param string $actionName + * @return Router */ - public function setDefaultAction(string $actionName) + public function setDefaultAction(string $actionName): Router { } @@ -236,8 +237,9 @@ public function setDefaultAction(string $actionName) * Sets the name of the default module * * @param string $moduleName + * @return Router */ - public function setDefaultModule(string $moduleName) + public function setDefaultModule(string $moduleName): Router { } diff --git a/src/Filter/Validation.php b/src/Filter/Validation.php index 5e1f2c7..74b58a7 100644 --- a/src/Filter/Validation.php +++ b/src/Filter/Validation.php @@ -264,10 +264,10 @@ public function setValidators(array $validators): Validation * Validate a set of data according to a set of rules * * @param array|object $data - * @param object $entity - * @return Messages + * @param object $entity + * @return Messages|false */ - public function validate($data = null, $entity = null): Messages + public function validate($data = null, $entity = null): Messages|bool { } diff --git a/src/Filter/Validation/ValidationInterface.php b/src/Filter/Validation/ValidationInterface.php index 9e1229b..60d1aad 100644 --- a/src/Filter/Validation/ValidationInterface.php +++ b/src/Filter/Validation/ValidationInterface.php @@ -129,8 +129,8 @@ public function setLabels(array $labels): void; * Validate a set of data according to a set of rules * * @param array|object $data - * @param object $entity - * @return Messages + * @param object $entity + * @return Messages|false */ - public function validate($data = null, $entity = null): Messages; + public function validate($data = null, $entity = null): Messages|bool; }