diff --git a/inc/session_handler/class-disallowed-session-handler.php b/inc/session_handler/class-disallowed-session-handler.php index ea752c0d..aa02c591 100644 --- a/inc/session_handler/class-disallowed-session-handler.php +++ b/inc/session_handler/class-disallowed-session-handler.php @@ -29,7 +29,10 @@ function destroy( string $id ) : bool { trigger_error( 'PHP Sessions requires Redis integration, which is currently not activated.', E_USER_WARNING ); return false; } - function read( string $id ) : string | false { + /** + * @return string|false + */ + function read( string $id ) { trigger_error( 'PHP Sessions requires Redis integration, which is currently not activated.', E_USER_WARNING ); return false; } @@ -37,7 +40,10 @@ function write( string $id, string $data ) : bool { trigger_error( 'PHP Sessions requires Redis integration, which is currently not activated.', E_USER_WARNING ); return false; } - function gc( int $maxlifetime ) : int | false { + /** + * @return int|false + */ + function gc( int $maxlifetime ) { trigger_error( 'PHP Sessions requires Redis integration, which is currently not activated.', E_USER_WARNING ); return false; }