From 4de4592992b1c2ea6d5d3314f8142c941c963da8 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev <1695147@gmail.com> Date: Sat, 23 Dec 2023 11:25:17 +0000 Subject: [PATCH] #16477 - Adjust return types `bool` -> `false` --- phalcon/Session/Adapter/AbstractAdapter.zep | 2 +- phalcon/Session/Adapter/Noop.zep | 2 +- phalcon/Session/Adapter/Stream.zep | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phalcon/Session/Adapter/AbstractAdapter.zep b/phalcon/Session/Adapter/AbstractAdapter.zep index 70b9c844464..b6f4b876fd5 100644 --- a/phalcon/Session/Adapter/AbstractAdapter.zep +++ b/phalcon/Session/Adapter/AbstractAdapter.zep @@ -46,7 +46,7 @@ abstract class AbstractAdapter implements SessionHandlerInterface * @param int $maxlifetime * @return false|int */ - public function gc(int maxlifetime) -> int|bool + public function gc(int maxlifetime) -> int|false { return true; } diff --git a/phalcon/Session/Adapter/Noop.zep b/phalcon/Session/Adapter/Noop.zep index 351f6380d34..d9da6b9259e 100644 --- a/phalcon/Session/Adapter/Noop.zep +++ b/phalcon/Session/Adapter/Noop.zep @@ -99,7 +99,7 @@ class Noop implements SessionHandlerInterface * @param int $maxlifetime * @return false|int */ - public function gc(int maxlifetime) -> int|bool + public function gc(int maxlifetime) -> int|false { return true; } diff --git a/phalcon/Session/Adapter/Stream.zep b/phalcon/Session/Adapter/Stream.zep index a0cb4aa584b..f5f60ba661e 100644 --- a/phalcon/Session/Adapter/Stream.zep +++ b/phalcon/Session/Adapter/Stream.zep @@ -93,7 +93,7 @@ class Stream extends Noop * @param int $maxlifetime * @return false|int */ - public function gc(int maxlifetime) -> int|bool + public function gc(int maxlifetime) -> int|false { var file, pattern, time;