From 8e398d24f132095fffba0db3c7ceea9a43371b4d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 6 Jan 2022 22:39:35 +0100 Subject: Fix several PHP8.1 warnings (#4123) * Fix several PHP8.1 warnings Taking advantage of https://github.com/FreshRSS/FreshRSS/pull/4121 * Couple oh type hints missing * Compatibility PHP 7 * Fix variadic PHPDocs syntax --- lib/lib_rss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 3ba154209..a43bc475f 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -19,10 +19,10 @@ if (COPY_SYSLOG_TO_STDERR) { /** * Build a directory path by concatenating a list of directory names. * - * @param string $path_parts a list of directory names + * @param string ...$path_parts a list of directory names * @return string corresponding to the final pathname */ -function join_path(...$path_parts) { +function join_path(...$path_parts): string { return join(DIRECTORY_SEPARATOR, $path_parts); } -- cgit v1.2.3