From 8b9896f196a482a30eff032a2d5b2b61b8a92406 Mon Sep 17 00:00:00 2001 From: netkas Date: Sat, 4 Jan 2025 15:34:40 -0500 Subject: [PATCH] Add default value for getFlags() $asString parameter --- src/Socialbox/Objects/Database/SessionRecord.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Socialbox/Objects/Database/SessionRecord.php b/src/Socialbox/Objects/Database/SessionRecord.php index c4ca58d..37145d1 100644 --- a/src/Socialbox/Objects/Database/SessionRecord.php +++ b/src/Socialbox/Objects/Database/SessionRecord.php @@ -195,11 +195,12 @@ } /** - * Retrieves the list of flags associated with the current instance. + * Retrieves the flags associated with the session. * - * @return array Returns an array of flags. + * @param bool $asString Determines whether the flags should be returned as strings. + * @return array An array of session flags, either as objects or strings depending on the $asString parameter. */ - public function getFlags(bool $asString): array + public function getFlags(bool $asString=false): array { if($asString) {