From 9d25a71b181be5d4fa859c971d9a2777b002e366 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Thu, 8 Feb 2024 12:31:26 -0600 Subject: [PATCH] Revert "5.6.1" --- .github/workflows/main.yml | 2 +- src/Cache/AbstractCache.php | 5 ++--- src/Cli/Router.php | 6 ++---- src/Filter/Validation.php | 4 ++-- src/Filter/Validation/ValidationInterface.php | 4 ++-- 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a916ae4..128dc7d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: php-versions: ["7.4", "8.0", "8.1", "8.2"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v3 - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 diff --git a/src/Cache/AbstractCache.php b/src/Cache/AbstractCache.php index 0db74cb..5045709 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): mixed + protected function doGet(string $key, $defaultValue = null) { } @@ -123,9 +123,8 @@ protected function doGet(string $key, $defaultValue = null): mixed * * @param mixed $keys * @param mixed $defaultValue - * @return array */ - protected function doGetMultiple($keys, $defaultValue = null): array + protected function doGetMultiple($keys, $defaultValue = null) { } diff --git a/src/Cli/Router.php b/src/Cli/Router.php index 1b27cc8..a925d49 100644 --- a/src/Cli/Router.php +++ b/src/Cli/Router.php @@ -227,9 +227,8 @@ public function handle($arguments = null) * Sets the default action name * * @param string $actionName - * @return Router */ - public function setDefaultAction(string $actionName): Router + public function setDefaultAction(string $actionName) { } @@ -237,9 +236,8 @@ public function setDefaultAction(string $actionName): Router * Sets the name of the default module * * @param string $moduleName - * @return Router */ - public function setDefaultModule(string $moduleName): Router + public function setDefaultModule(string $moduleName) { } diff --git a/src/Filter/Validation.php b/src/Filter/Validation.php index d867935..5e1f2c7 100644 --- a/src/Filter/Validation.php +++ b/src/Filter/Validation.php @@ -265,9 +265,9 @@ public function setValidators(array $validators): Validation * * @param array|object $data * @param object $entity - * @return Messages|false + * @return Messages */ - public function validate($data = null, $entity = null): Messages|bool + public function validate($data = null, $entity = null): Messages { } diff --git a/src/Filter/Validation/ValidationInterface.php b/src/Filter/Validation/ValidationInterface.php index 2b16c26..9e1229b 100644 --- a/src/Filter/Validation/ValidationInterface.php +++ b/src/Filter/Validation/ValidationInterface.php @@ -130,7 +130,7 @@ public function setLabels(array $labels): void; * * @param array|object $data * @param object $entity - * @return Messages|false + * @return Messages */ - public function validate($data = null, $entity = null): Messages|bool; + public function validate($data = null, $entity = null): Messages; }